1 # Maintainer: boenki <boenki at gmx dot de>
2 # Contributor: Casey McDonnell <c.j.mcdonn@gmail.com>
7 pkgdesc="A molecular visualization program."
9 url="http://www.zucic.org/$pkgname/"
12 install="$pkgname.install"
13 source=(http://www.zucic.org/sources/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz
14 http://www.zucic.org/sources/$pkgname-$pkgver/$pkgname-$pkgver-doc.tar.gz
15 http://www.zucic.org/sources/$pkgname-$pkgver/$pkgname.1.gz
17 md5sums=('5fac1f13733d9700925a0cb9a407c651'
18 '08ec479898102062250ebd60700e102c'
19 '5b91358ce8a48e12e6c1d3650aa6ebb4'
20 'da42765ab5a03e78121c7e7729b609ca')
23 cd $srcdir/$pkgname-$pkgver
24 #patch Makefile to use CFLAGS set in /etc/makepkg.conf
25 sed -i "s|CCOPT = -O3|CCOPT = ${CFLAGS}|g" ./Makefile
26 #tell make where libx11.so lives
27 sed -i "s|-L/usr/X11R6/lib|-L/usr/lib|g" ./Makefile
32 cd $srcdir/$pkgname-$pkgver
33 install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname
34 install -Dm644 .garlicrc $pkgdir/usr/share/$pkgname/.garlicrc
35 install -d $pkgdir/usr/share/$pkgname
36 install -m644 -t $pkgdir/usr/share/$pkgname *.pdb
37 install -d $pkgdir/usr/share/doc/$pkgname
38 cp -r {favicon.ico,tolower.script,*.jpg,*.gif,*.html,*.png,*/} $pkgdir/usr/share/doc/$pkgname
39 install -Dm644 $srcdir/$pkgname.1 $pkgdir/usr/share/man/man1/$pkgname.1
40 install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
41 install -Dm644 $pkgname.xpm $pkgdir/usr/share/pixmaps/$pkgname.xpm