updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tamagotchi_boxing / PKGBUILD
blob5a694fcb5b81c11ee863952af337570763a1d22a
1 # Maintainer: Jozef Riha <jose1711 at gmail dot com>
3 pkgname=tamagotchi_boxing
4 pkgver=0.1
5 pkgrel=3
6 pkgdesc="A game where you train a virtual pet to become a boxer"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/tamagotchi-boxing/"
9 license=('GPL')
10 install=tamagotchi_boxing.install
11 depends=('sge' 'sdl_ttf' 'gcc-libs')
12 makedepends=('cmake')
13 source=("http://tamagotchi-boxing.googlecode.com/files/${pkgname}-${pkgver}.tar.gz" "tamagotchi_boxing.desktop")
14 md5sums=('f0dae22511c2ba74bef53cae64df78fd'
15          '1a42aaa10b608438ccf7fd0eebded929')
17 build() {
18   mkdir -p ${pkgdir}/usr/bin
19   install -D -m644 $srcdir/tamagotchi_boxing.desktop $pkgdir/usr/share/applications/tamagotchi_boxing.desktop
20   cd $srcdir/${pkgname}/src
21   cmake .. -DCMAKE_INSTALL_PREFIX=/usr/share/tamagotchi_boxing
22   make
25 package() {
26   cd $srcdir/${pkgname}/src
27   make DESTDIR=$pkgdir install 
28   (echo "#!/bin/bash
29 cd /usr/share/tamagotchi_boxing
30 ./tamagotchi_boxing \"\$@\"") > $pkgdir/usr/bin/tamagotchi_boxing
31   chmod 755 $pkgdir/usr/bin/tamagotchi_boxing