updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / achilles / PKGBUILD
blobd535876e743318e82e47a7d0d02cccd457377fd0
1 # vim:set ts=2 sw=2 et:
2 # Maintainer: Michal Kowalski <kowalski TOD michal TA gmail TOD com>
4 _debplv=8
6 pkgname=achilles
7 pkgver=2
8 pkgrel=2
9 pkgdesc="An artificial life and evolution simulator that uses Hebbian neural networks and OpenGL/SDL to simulate life in a simplified environment. It is based on Larry Yaeger's PolyWorld idea"
10 arch=('i686')
11 # originally there, still has 1st version's tarball, do not remove
12 #url="http://achilles.sourceforge.net/"
13 url="http://packages.debian.org/achilles"
14 # resolves to
15 #url="http://packages.debian.org/search?keywords=achilles"
16 # really but looks better in -Qi and should be the stable one
17 license=('GPL2')
18 groups=('ypb')
19 depends=('libgl' 'sdl' 'libpng' 'zlib')
20 makedepends=()
21 optdepends=()
22 provides=()
23 conflicts=()
24 replaces=()
25 backup=()
26 options=()
27 install=
28 changelog=
29 # see url comment above...
30 #source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
31 source=(http://ftp.debian.org/debian/pool/main/a/$pkgname/${pkgname}_${pkgver}.orig.tar.gz
32         http://ftp.debian.org/debian/pool/main/a/$pkgname/${pkgname}_${pkgver}-${_debplv}.diff.gz)
33 md5sums=('4514b3f93b8bf790738822da3a0f37de'
34          'a74f6bfefcacd10b7b70f7d23487dc16')
35 noextract=()
37 _docs='README NEWS ChangeLog AUTHORS'
39 build() {
40   cd "$srcdir/$pkgname-$pkgver"
42   gunzip -c ../${pkgname}_${pkgver}-${_debplv}.diff.gz | patch -p1
43   ./configure --prefix=/usr
44   make
47 package() {
48   cd "$srcdir/$pkgname-$pkgver"
50   make DESTDIR="$pkgdir/" install
51   for d in usr/share/{doc/$pkgname-$pkgver,pixmaps,applications,man/man1} ; do
52         install -m755 -d $pkgdir/$d ;
53   done
54   install -m644 debian/$pkgname.1 $pkgdir/usr/share/man/man1
55   install -m644 debian/$pkgname.desktop $pkgdir/usr/share/applications
56   install -m644 debian/$pkgname.svg $pkgdir/usr/share/pixmaps
57   install -m644 -t $pkgdir/usr/share/doc/$pkgname-$pkgver ${_docs}