# Maintainer: Jesus E. pkgname=pingus pkgver=0.7.6 _debver=$pkgver _debrel=5.1 pkgrel=3 pkgdesc="A level-based puzzle game." arch=('i686' 'x86_64') url='https://pingus.seul.org' license=('GPL-3') depends=('sdl_image' 'sdl_mixer' 'libgl' 'boost-libs') makedepends=('scons' 'python-setuptools' 'boost' 'mesa' 'glu' 'quilt') groups=('games') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Pingus/pingus/archive/v${pkgver}.tar.gz" "https://deb.debian.org/debian/pool/main/p/pingus/pingus_${_debver}-${_debrel}.debian.tar.xz" "pingus.desktop") sha512sums=('ea0e7fd2cc1f6c23e62e222dffa1eb4764313ccecd716083c516fa4720c19562c9940da1dae4cbc527b85de9c0094f482e4f907212226b39ad044222b477769b' 'c67fbb8ad55d7e4d75e5aa8ceccb6b660f145448af999205f6915e8492f0468e2dbf0670978b9dcfd1c41b81aa22115dec30dbc5385119cf10794658c050df50' '77afaa7e979329f0f79aa7810354a5b609465c60b8f23321c657437e3381440465c3bf04db2c1be8445541bfae17222f12cf02310724c25cf9f7a4118955d529') prepare() { cd $pkgname-$pkgver if [[ ${pkgver%.*} = ${_debver%.*} ]]; then # Debian patches export QUILT_PATCHES=debian/patches export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index' export QUILT_DIFF_ARGS='--no-timestamps' mv "$srcdir"/debian . quilt push -av fi } build() { cd $pkgname-$pkgver scons prefix=/usr bindir=/usr/games datadir=/usr/share/games/pingus } package() { cd ${pkgname}-${pkgver} make install DESTDIR="${pkgdir}" PREFIX="/usr" BINDIR="/usr/games" DATADIR="/usr/share/games/pingus" install -D -m644 "${srcdir}"/pingus.desktop -t "${pkgdir}"/usr/share/applications install -D -m644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname" }