2011-07-22 05:31:43 +08:00
|
|
|
# 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
|
2011-07-22 05:31:43 +08:00
|
|
|
pkgdesc="A Lemmings clone, i.e. a level-based puzzle game."
|
2014-06-12 00:28:29 +08:00
|
|
|
arch=('x86_64')
|
2011-07-22 05:31:43 +08:00
|
|
|
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')
|
2012-12-15 19:42:13 +08:00
|
|
|
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')
|
2011-07-22 05:31:43 +08:00
|
|
|
|
|
|
|
build() {
|
2011-10-12 04:51:10 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2012-12-15 19:42:13 +08:00
|
|
|
patch -Np0 -i ${srcdir}/$pkgname-$pkgver-gcc470-udl.patch
|
2011-10-12 04:51:10 +08:00
|
|
|
scons prefix=/usr
|
2011-07-22 05:31:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2011-10-12 04:51:10 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make install PREFIX="${pkgdir}/usr"
|
2011-10-14 06:03:21 +08:00
|
|
|
|
|
|
|
# This is needed... the standard installation method it TOTALLY broken in this script creation.
|
2012-12-15 19:42:13 +08:00
|
|
|
cat > "${pkgdir}/usr/bin/$pkgname" <<EOF
|
2011-10-14 06:03:21 +08:00
|
|
|
#!/bin/sh
|
2012-12-15 19:42:13 +08:00
|
|
|
exec "/usr/bin/$pkgname.bin" --datadir "/usr/share/$pkgname"
|
2011-10-14 06:03:21 +08:00
|
|
|
EOF
|
2012-12-15 19:42:13 +08:00
|
|
|
chmod 755 "${pkgdir}/usr/bin/$pkgname"
|
2011-07-22 05:31:43 +08:00
|
|
|
}
|