updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / clonekeen / PKGBUILD
blob0698b07313ee83f92a9840a26573bed46b6c7952
1 # Maintainer: TDY <tdy@gmx.com>
3 pkgname=clonekeen
4 pkgver=8.4
5 pkgrel=1
6 pkgdesc="A clone of the classic DOS game, Commander Keen: Invasion of the Vorticons"
7 arch=('i686' 'x86_64')
8 url="http://clonekeen.sourceforge.net/"
9 license=('GPL3')
10 depends=('gcc-libs' 'sdl')
11 install=$pkgname.install
12 source=(http://$pkgname.sourceforge.net/files/$pkgname-src-${pkgver/.}.tar.gz
13         http://$pkgname.sourceforge.net/files/1keen131.zip
14         $pkgname.desktop $pkgname.png $pkgname.sh)
15 noextract=(1keen131.zip)
16 md5sums=('0179c34727d044f07a1c00df340134bd'
17          '0561dd3e32ea4a0f965bd2288a3e64b3'
18          '73d81bb50749f1f8b3b0fa55a724cca5'
19          '77f4c659fc773abb297e4f5cf1bbbe70'
20          'dbbb923232b390def47eb8f4eca966a8')
22 build() {
23   cd "$srcdir/keen/src"
24   sed -i "s#gcc -O2#gcc $CFLAGS#g" Makefile
25   make || return 1
28 package() {
29   cd "$srcdir/keen"
30   install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
31   install -Dm644 ../$pkgname.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
32   install -Dm644 ../$pkgname.desktop \
33     "$pkgdir/usr/share/applications/$pkgname.desktop"
35   install -Dm755 src/keen "$pkgdir/usr/lib/$pkgname/keen"
36   cp -rf bin/* "$pkgdir/usr/lib/$pkgname"
37   bsdtar -xf "$srcdir/1keen131.zip" -C "$pkgdir/usr/lib/$pkgname/data"
38   find "$pkgdir/usr/lib/$pkgname" -type f ! -name keen -exec chmod 644 '{}' \;
39   find "$pkgdir/usr/lib/$pkgname" -type d -exec chmod 755 '{}' \;