1 # Contributor: Markus Gross (xsdnyd [at] gmail.com)
2 # Maintainer: Baptiste Jonglez <zerstorer@free.fr>
6 pkgdesc="The powerful solution for graph visualization"
7 url="http://www.informatik.uni-bremen.de/uDrawGraph/"
11 [ "$CARCH" = "x86_64" ] && depends=('lib32-libx11')
12 source=("http://www.informatik.uni-bremen.de/uDrawGraph/download/uDrawGraph-$pkgver-0-linux-i386.tar.gz")
13 md5sums=("7594da0391d2e5a2aa4b073b10938e9a")
17 cd $srcdir/uDrawGraph-3.1
19 # just copy all files, it is already binary
20 mkdir -p $pkgdir/opt/$pkgname/
21 mkdir -p $pkgdir/usr/bin
22 cp -r * $pkgdir/opt/$pkgname/
24 # put fake binaries in /usr/bin
25 echo "#!/bin/bash" > $pkgdir/usr/bin/udrawgraph
26 echo "UDG_HOME=/opt/udrawgraph /opt/$pkgname/bin/uDrawGraph "'$@' >> $pkgdir/usr/bin/udrawgraph
27 chmod +x $pkgdir/usr/bin/udrawgraph
29 for i in grapheditor gml2udg formatterm flattenterm checkterm
31 echo "#!/bin/bash" > $pkgdir/usr/bin/$i
32 echo "UDG_HOME=/opt/udrawgraph /opt/$pkgname/bin/$i "'$@' >> $pkgdir/usr/bin/$i
33 chmod +x $pkgdir/usr/bin/$i
37 mkdir -p $pkgdir/usr/share/licenses/$pkgname
38 cp LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE