updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / popg / PKGBUILD
blob13eb9617d017b858b5180604986072ca9466b91c
1 # Contributor: Nick B <Shirakawasuna at gmail _dot_com>
2 pkgname=popg
3 pkgver=3.3
4 pkgrel=1
5 pkgdesc="A one-locus, two-allele genetic simulation program for use by students."
6 arch=('i686' 'x86_64')
7 url="http://evolution.gs.washington.edu/popgen/popg.html"
8 license=('custom')
9 depends=('gtk2')
10 source=(http://evolution.gs.washington.edu/popgen/popgsrc.tar.gz
11         desktop_popg.patch
12         icon_popg.patch)
14 build() {
17 cd $srcdir/PopG_${pkgver}_src
18 patch -p1 <../desktop_popg.patch
19 patch -p1 <../icon_popg.patch
20 sed -i s,"cp popg","install -D -m755 popg",g Makefile.gtk
21 make DISTDIR=/usr -f Makefile.gtk || return 1
22 mkdir -p $pkgdir/usr/bin
23 make DISTDIR=$pkgdir/usr -f Makefile.gtk install || return 1
24 install -D -m644 popg.xpm $pkgdir/usr/share/pixmaps/popg.xpm
25 install -D -m644 popg.desktop $pkgdir/usr/share/applications/popg.desktop
26 install -D -m644 copyright $pkgdir/usr/share/licenses/popg/copyright
29 md5sums=('2da157a60152958b324707d4bdd4f21c'
30          'c038f50893cfe120b62f745ca8f4cfbe'
31          'ccf89725354e64417eb0e6989316714b')