2024-02-19 01:27:37 +01:00
|
|
|
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
|
|
|
|
# Contributor: Gaetan Bisson <bisson@archlinux.org>
|
|
|
|
# Contributor: kevin <kevin@archlinux.org>
|
|
|
|
# Contributor: John Proctor <jproctor@prium.net>
|
|
|
|
|
|
|
|
pkgname=graphviz
|
2024-04-30 21:46:44 +02:00
|
|
|
pkgver=11.0.0
|
|
|
|
pkgrel=1
|
2024-02-19 01:27:37 +01:00
|
|
|
pkgdesc='Graph visualization software'
|
|
|
|
url='https://www.graphviz.org/'
|
|
|
|
license=('EPL')
|
|
|
|
arch=('x86_64')
|
|
|
|
depends=('libltdl' 'gd' 'librsvg' 'ghostscript' 'pango' 'gts' 'gsfonts')
|
|
|
|
makedepends=('swig' 'mono' 'guile' 'lua' 'perl' 'python' 'r' 'tk' 'qt6-base')
|
|
|
|
optdepends=('mono: sharp bindings'
|
|
|
|
'guile: guile bindings'
|
|
|
|
'lua: lua bindings'
|
|
|
|
'perl: perl bindings'
|
|
|
|
'python: python bindings'
|
|
|
|
'r: r bindings'
|
|
|
|
'tcl: tcl bindings'
|
|
|
|
'qt6-base: gvedit'
|
|
|
|
'xterm: vimdot')
|
|
|
|
source=("https://gitlab.com/graphviz/graphviz/-/archive/$pkgver/$pkgname-$pkgver.tar.gz"
|
|
|
|
'ghostscript918.patch')
|
2024-04-30 21:46:44 +02:00
|
|
|
sha256sums=('d374f7d98a1ae985510a82dddd887e8058aa37e5f95b4ce0aa58416d2b22714b'
|
2024-02-19 01:27:37 +01:00
|
|
|
'0083d126e27f2223ec4226fc1d71c9c84106968a0fdf65de838aee1e4882bfdb')
|
|
|
|
install=install
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
patch -p1 -i ../ghostscript918.patch
|
|
|
|
./autogen.sh NOCONFIG
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
export LIBPOSTFIX=/
|
|
|
|
export CXXFLAGS+=' -fPIC -fpermissive'
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-python3=yes --disable-python --enable-lefty
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # Fix overlinking
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
# fix symlink to symlink that doesn't get picked up by makepkg's zipman
|
|
|
|
ln -s gv2gxl.1.gz "${pkgdir}"/usr/share/man/man1/dot2gxl.1.gz
|
|
|
|
rm "${pkgdir}"/usr/share/man/man1/dot2gxl.1
|
|
|
|
|
|
|
|
# Deduplicates TCL libraries
|
|
|
|
cd "${pkgdir}/usr/lib/tcl8.6"
|
|
|
|
rm -fr graphviz
|
|
|
|
ln -s ../graphviz/tcl graphviz
|
|
|
|
}
|