updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / popeye / PKGBUILD
blob9d3d33a8376c2586344ac796f7fc1fea58ec9496
1 # Maintainer: Auguste Pop <auguste [at] gmail [dot] com>
3 pkgname=popeye
4 pkgver=4.59
5 pkgrel=1
6 pkgdesc="A chess problem solving and testing software"
7 arch=('i686' 'x86_64')
8 url="http://sourceforge.net/projects/popeye-chess/"
9 license=('custom')
10 source=("http://downloads.sourceforge.net/$pkgname-chess/$pkgname-$pkgver-sources.zip"
11         "gengmarr.c")
12 md5sums=('881db669bd9f88d2f9485514d34c5ba9'
13          'cfcb6fcc9f6f05d96ecae2aeb1b604a0')
15 build()
17     cd "$srcdir/$pkgver"
19     ln -s "$srcdir/gengmarr.c" .
20     sed -i '/py6.h/d' pymain.c
22     CFLAGS='-march=native -mtune=native' make -f makefile.unx
25 package()
27     cd "$srcdir/$pkgver"
29     install -m 755 -D py "$pkgdir/usr/bin/py"
30     install -m 644 -D license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
31     install -d "$pkgdir/usr/share/doc/$pkgname"
32     install -m 644 py-*.txt "$pkgdir/usr/share/doc/$pkgname"