updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / cutegod / PKGBUILD
blobb46ff52b3aa0d250208788b857bea86fa2ce8548
1 # Maintainer: Jarosla Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: rabyte <rabyte*gmail>
4 pkgname=cutegod
5 pkgver=0.3.0
6 pkgrel=5
7 pkgdesc="Take on the role of a god and satisfy the needs of your believers"
8 arch=('i686' 'x86_64')
9 url="http://mfgames.com/cutegod/start"
10 license=('GPL2')
11 depends=('mono' 'devil' 'sdl_mixer' 'sdl_net' 'sdl_image' 'sdl_ttf' 'sdl_gfx' 'smpeg' 'freeglut' 'physfs' 'perl')
12 makedepends=('nant' 'patch')
13 source=(http://mfgames.com/releases/$pkgname/$pkgname-$pkgver.tar.bz2 \
14         http://mfgames.com/releases/$pkgname/$pkgname-data-$pkgver.zip \
15         libs-filenames.diff \
16         $pkgname-gamedir.diff)
17 md5sums=('126e0612af692ae4bee41a261eeae4b4'
18          '73fc19011fa80887752d819309009bd5'
19          '9fe6d977ed2d06ac236b2720e5f93696'
20          '9639c49a578220166dac592ea55ed80c')
22 build() {
23   cd $pkgname-$pkgver
25   patch -Np1 -i ../$pkgname-gamedir.diff
26   patch -Np1 -i ../libs-filenames.diff
28   sed -e 's|fnant|nant|g' \
29       -e 's|build-debug|build|g' \
30       -i Makefile
32   export MONO_SHARED_DIR=$(pwd)
33   cp -rf ../Assets/ .
34   make
37 package() {
38   cd $pkgname-$pkgver
40   install -D -m755 tools/$pkgname ${pkgdir}/usr/bin/$pkgname
41   install -d ${pkgdir}/usr/share/$pkgname
42   cp -rf Assets/ CuteGod/bin/Release/* $pkgdir/usr/share/$pkgname/
44 # i don't want executable exe files on my linux box
45   chmod 644 ${pkgdir}/usr/share/$pkgname/CuteGod.exe