updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / udrawgraph / PKGBUILD
bloba81a9ce2a5b95a5e7c35aa76f044980458cfb433
1 # Contributor: Markus Gross (xsdnyd [at] gmail.com)
2 # Maintainer: Baptiste Jonglez <zerstorer@free.fr>
3 pkgname=udrawgraph
4 pkgver=3.1.1
5 pkgrel=3
6 pkgdesc="The powerful solution for graph visualization"
7 url="http://www.informatik.uni-bremen.de/uDrawGraph/"
8 arch=('i686' 'x86_64')
9 license='CUSTOM'
10 depends=('libx11')
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")
16 build() {
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
28   
29   for i in grapheditor gml2udg formatterm flattenterm checkterm
30   do
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
34   done
36   # install license
37   mkdir -p $pkgdir/usr/share/licenses/$pkgname
38   cp LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
41 # vim:syntax=sh