1 # Contributor: Kirill "reflexing" Churin <reflexing@reflexing.ru>
2 # Maintainer: Kyrylo Silin <kyrylosilin@gmail.com>
7 pkgdesc="King Arthur's Gold is a game to build castles and destroy your enemies, inspired by Soldat and Minecraft"
9 url="http://kag2d.com/"
11 depends=('desktop-file-utils' 'xdg-utils')
12 if test "$CARCH" == x86_64; then
13 depends=("${depends[@]}" 'lib32-libgl')
15 depends=("${depends[@]}" 'libgl')
18 source=(http://kag2d.com/downloads/kag${pkgver}x.tar.gz
21 irrlicht_1_32x32x24.png
27 install -dm755 ${pkgdir}/usr/bin
28 install -dm777 ${pkgdir}/usr/share/${pkgname}
29 install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
31 install -Dm755 kag ${pkgdir}/usr/bin/kag
33 cp -dr --preserve=mode,timestamp kag_x/* ${pkgdir}/usr/share/${pkgname}
34 chmod -R go+w ${pkgdir}/usr/share/${pkgname}
36 install -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}
38 # Proper installation of .desktop file
39 desktop-file-install -m 644 --dir ${pkgdir}/usr/share/applications/ kag.desktop
41 # Install icon (got from source package with "icotool -x irrlicht.ico")
42 install -m644 -D irrlicht_1_32x32x24.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/kag.png
45 md5sums=('008268230d7dc055860c3fd689273643'
46 'cc45655ce4c9af8768db8b2c60ccdc7a'
47 '3d3b3ea71998582cc88269d3f2da4863'
48 '81f2bae53e67f9220802b1187b8f398f'
49 '35cae9aeae1c2d561677230795d0d827')