#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com #Former: Juhana 'rexroom' Uuttu pkgname=graphviz pkgver=2.28.0 pkgrel=1 zenver=72 arch=i486 url=http://www.graphviz.org/ source=("http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-$pkgver.tar.gz") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/ap/$pkgname options=('norequiredbuilder') extradepends=('gd' 'zlib' 'freetype' 'libpng' 'libjpeg' 'expat' 'gettext') slackdesc=\ ( #|-----mind-the-gap-----------------------------------------------------| "$pkgname - graph visualization software" "Graph drawing addresses the problem of visualizing structural" "information by constructing geometric representations of abstract" "graphs and networks. Automatic generation of graph drawings has" "important applications in key technologies such as database design," "software engineering, VLSI and network design and visual interfaces in" "other domains." ) doinst() { # Build config for graphviz ### UGLY HACK ALERT ### # Sleeping in a subshell so doinst can set up symlinks in time ( sleep 3 && /usr/bin/dot -c ) } build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \ --disable-static \ --enable-ltdl \ --enable-tcl \ --enable-sharp \ --enable-ruby \ --enable-python \ --enable-php \ --enable-perl \ --enable-lua \ --enable-guile \ --enable-r \ --disable-ocaml \ --disable-io \ --disable-java make || return 1 make install DESTDIR=$startdir/pkg ### Post-build tweaking cd $startdir/pkg/usr/ mkdir -p doc/$pkgname-$pkgver # Moving docs mv share/graphviz/doc/* doc/$pkgname-$pkgver/ rm -rf share/graphviz/doc echo "*** NOW PACKAGING ***" }