desktop/pingus/PKGBUILD
2016-03-15 22:19:52 +00:00

35 lines
1.1 KiB
Bash

# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=pingus
pkgver=0.7.6
pkgrel=4
pkgdesc="A Lemmings clone, i.e. a level-based puzzle game."
arch=('x86_64')
url="http://pingus.seul.org"
license=('GPL')
depends=('gcc-libs' 'sdl_image' 'sdl_mixer' 'boost-libs')
makedepends=('boost' 'scons' 'glu' 'mesa')
categories=('games')
source=("http://pingus.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2"
"$pkgname-$pkgver-gcc470-udl.patch::https://projects.archlinux.org/svntogit/community.git/plain/trunk/$pkgname-$pkgver-gcc470-udl.patch?h=packages/$pkgname")
md5sums=('561798686f34d3fa4e69135d655f47ac'
'332b280b65f63aff03b4028057b1b7d5')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np0 -i ${srcdir}/$pkgname-$pkgver-gcc470-udl.patch
scons prefix=/usr
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make install PREFIX="${pkgdir}/usr"
# This is needed... the standard installation method it TOTALLY broken in this script creation.
cat > "${pkgdir}/usr/bin/$pkgname" <<EOF
#!/bin/sh
exec "/usr/bin/$pkgname.bin" --datadir "/usr/share/$pkgname"
EOF
chmod 755 "${pkgdir}/usr/bin/$pkgname"
}