updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / blackpenguin / PKGBUILD
blobacbdc6587ece8ec8bc92855db4b607c674f15873
1 # Maintainer: Anton Bazhenov <anton.bazhenov at gmail>
3 pkgname=blackpenguin
4 pkgver=0.2
5 pkgrel=1
6 pkgdesc='Arcade style jump-on-cubes game with Penguin and Evil Window'
7 arch=('i686' 'x86_64')
8 url='http://www.ibiblio.org/pub/linux/games/arcade/'
9 license=('GPL2')
10 depends=('qt2' 'libxext')
11 source=("http://www.ibiblio.org/pub/linux/games/arcade/${pkgname}-${pkgver}.tar.gz"
12         "${pkgname}.patch"
13         "${pkgname}.sh")
14 md5sums=('91ac8ac0f5588122c469e3f65b98c3df'
15          'dd43fbc5d922f86ef3a9b5d79c472301'
16          'ab0c0f9cf8af30be81d54221a7bc95bf')
18 build() {
19   cd "${srcdir}/${pkgname}-${pkgver}/src"
20   mv appwindow.cpp{.alt,}
21   sed -i 's/static char/static const char/g' *.xpm
22   patch -p0 -i "../../${pkgname}.patch"
23   QTDIR=/opt/qt2 make || return 1
26 package() {
27   cd "${srcdir}/${pkgname}-${pkgver}"
28   install -Dm755 "src/${pkgname}" "${pkgdir}/usr/bin/${pkgname}.bin"
29   install -Dm755 "../${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
30   install -Dm644 "doc/README" "${pkgdir}/usr/share/${pkgname}/README"
33 # vim:set ts=2 sw=2 et: