updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / haundrix-chess / PKGBUILD
blobbfdf846e4680abcd6cd463b3e71a7ae224333d97
1 # Maintainer: archtux <antonio.arias99999 at gmail.com>
3 pkgname=haundrix-chess
4 pkgver=0.1.0
5 pkgrel=1
6 pkgdesc="Chess program that can be used for playing against your computer and for viewing/editing your PGN files."
7 arch=('i686' 'x86_64')
8 url="http://www.haundrix.com/"
9 license=('GPL3')
10 depends=('java-runtime')
11 install=$pkgname.install
13 if [ "${CARCH}" = 'x86_64' ]; then
14   source=(http://www.haundrix.com/download/haundrix-0.1.0-Linux64bit.tar.gz
15           http://a.fsdn.com/con/icons/ha/haundrix@sf.net/knight.png)
16   md5sums=('e76aea8319596324faf8267522550ac6'
17            '11038b48bd30f9dba52145201c5d43d3')
18 elif  [ "${CARCH}" = 'i686' ]; then 
19   source=(http://www.haundrix.com/download/haundrix-0.1.0-Linux32bit.tar.gz
20           http://a.fsdn.com/con/icons/ha/haundrix@sf.net/knight.png)
21   md5sums=('4a72c308cf86ae323a1d6ce4bea3726b'
22            '11038b48bd30f9dba52145201c5d43d3')
25 build() {
26     cd $srcdir
28    mkdir -p $pkgdir/usr/share/haundrix-chess
29    cp -r haundrix/* $pkgdir/usr/share/haundrix-chess
30    cd ..
31    install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname
33    # Desktop icon
34    install -Dm644 knight.png $pkgdir/usr/share/pixmaps/$pkgname.png
35    install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop