desktop/pingus/PKGBUILD

35 lines
1.1 KiB
Bash
Raw Normal View History

# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=pingus
2011-12-29 01:07:20 +08:00
pkgver=0.7.6
2016-03-16 05:59:15 +08:00
pkgrel=4
pkgdesc="A Lemmings clone, i.e. a level-based puzzle game."
2014-06-12 00:28:29 +08:00
arch=('x86_64')
url="http://pingus.seul.org"
license=('GPL')
2014-06-12 00:28:29 +08:00
depends=('gcc-libs' 'sdl_image' 'sdl_mixer' 'boost-libs')
makedepends=('boost' 'scons' 'glu' 'mesa')
2012-03-07 19:00:46 +08:00
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() {
2011-10-12 04:51:10 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np0 -i ${srcdir}/$pkgname-$pkgver-gcc470-udl.patch
2011-10-12 04:51:10 +08:00
scons prefix=/usr
}
package() {
2011-10-12 04:51:10 +08:00
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"
}