updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / fastbreeder / PKGBUILD
blob4ceb7fa3d9e2819118e7bd1dcd8ce3ad8b6fa44c
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=fastbreeder
4 pkgver=1.0.1
5 pkgrel=4
6 pkgdesc="An experimental genetic programming synthesiser."
7 arch=(i686 x86_64)
8 url="http://www.pawfal.org/Software/fastbreeder/"
9 license=('GPL')
10 depends=('jack' 'liblo' 'python2')
11 makedepends=('scons')
12 source=("http://www.pawfal.org/Software/fastbreeder/files/$pkgname-$pkgver.tar.gz")
13 md5sums=('9d475f99545006df1bcbd52f807245aa')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   scons
21 package() {
22   cd "$srcdir/$pkgname-$pkgver"
24   # server
25   install -Dm755 "$pkgname"server \
26     "$pkgdir/usr/bin/${pkgname}server"
28   # scripts
29   install -d "$pkgdir/usr/share/$pkgname"
30   install -Dm755 scripts/* doc/notes.txt \
31     "$pkgdir/usr/share/$pkgname"
33   # bin link
34   ln -s "/usr/share/$pkgname/$pkgname" \
35     "$pkgdir/usr/bin"
37   # python2 fix
38   sed -i "s/python/&2/" "$pkgdir/usr/share/$pkgname/$pkgname"