1 # Maintainer: TDY <tdy@gmx.com>
6 pkgdesc="A clone of the classic DOS game, Commander Keen: Invasion of the Vorticons"
8 url="http://clonekeen.sourceforge.net/"
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')
24 sed -i "s#gcc -O2#gcc $CFLAGS#g" Makefile
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 '{}' \;