updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / syasokoban / PKGBUILD
blob6299191f763f2808e6756c371cecbd5f6fb7a5cd
1 # Maintainer: kfgz <kfgz at interia pl>
2 # Contributor: scj <scj(at)archlinux(dot)us>
4 pkgname=syasokoban
5 pkgver=2.0.1
6 pkgrel=3
7 pkgdesc="Still Yet Another implementation of the puzzle game Sokoban"
8 arch=('i686' 'x86_64')
9 url="http://grayskygames.com/sokoban.html"
10 license=('GPL')
11 depends=('sdl')
12 source=(http://grayskygames.com/sokoban/${pkgname}-${pkgver}.tar.gz
13         fixpath.patch
14         ${pkgname}.desktop)
15 md5sums=('3735ea7f164587165d4d03805a87b1a5'
16          '9804a24b30d718c60396706e09321365'
17          '2ac83ee60e214a1c52c216aeb8e421c3')
19 build() {
20   cd "${srcdir}/${pkgname}-${pkgver}"
21   patch -p1 < ../fixpath.patch
22   make
25 package() {
26   cd "${srcdir}/${pkgname}-${pkgver}"
27   mkdir -p ${pkgdir}/usr/bin ${pkgdir}/usr/share/syasokoban
28   cp syasokoban ${pkgdir}/usr/bin/syasokoban
29   cp -r data/* ${pkgdir}/usr/share/syasokoban/
30   find ${pkgdir} -perm 544 -exec chmod 644 {} \;
31   find ${pkgdir} -perm 744 -exec chmod 644 {} \;
32   install -Dm644 ${srcdir}/${pkgname}.desktop \
33                  ${pkgdir}/usr/share/applications/${pkgname}.desktop