updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / garlic / PKGBUILD
blob00f7f77ae6b4d247668c26362c1f11b0c0a40d9e
1 # Maintainer: boenki <boenki at gmx dot de>
2 # Contributor: Casey McDonnell <c.j.mcdonn@gmail.com>
4 pkgname=garlic
5 pkgver=1.6
6 pkgrel=2
7 pkgdesc="A molecular visualization program."
8 arch=('i686' 'x86_64')
9 url="http://www.zucic.org/$pkgname/"
10 license=('GPL2')
11 depends=('libx11')
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
16         $pkgname.desktop)
17 md5sums=('5fac1f13733d9700925a0cb9a407c651'
18          '08ec479898102062250ebd60700e102c'
19          '5b91358ce8a48e12e6c1d3650aa6ebb4'
20          'da42765ab5a03e78121c7e7729b609ca')
22 build() {
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
28   make
31 package() {
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