2011-07-22 05:31:43 +08:00
|
|
|
pkgname=pingus
|
2011-12-29 01:07:20 +08:00
|
|
|
pkgver=0.7.6
|
2017-06-01 16:15:17 +08:00
|
|
|
pkgrel=5
|
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')
|
2017-06-01 16:15:17 +08:00
|
|
|
source=("$pkgname-$pkgver.tgz::https://github.com/Pingus/pingus/archive/v$pkgver.tar.gz"
|
|
|
|
"$pkgname-$pkgver-gcc470-udl.patch::https://projects.archlinux.org/svntogit/community.git/plain/trunk/$pkgname-$pkgver-gcc470-udl.patch?h=packages/$pkgname"
|
|
|
|
missing-header.patch)
|
|
|
|
md5sums=('8f366e7ba76c9f3525888efe8b04b1ad'
|
|
|
|
'332b280b65f63aff03b4028057b1b7d5'
|
|
|
|
'782aa332f18c589b13e5bc0954ab5d21')
|
2011-07-22 05:31:43 +08:00
|
|
|
|
|
|
|
build() {
|
2011-10-12 04:51:10 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2017-06-01 16:15:17 +08:00
|
|
|
|
|
|
|
# fedora patch to fix error due to new standards
|
|
|
|
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51282
|
|
|
|
patch -Np0 -i ${srcdir}/pingus-0.7.6-gcc470-udl.patch
|
|
|
|
# manpage must be in man6, not man1
|
|
|
|
sed -i "s#/man1/#/man6/#g" Makefile
|
|
|
|
# missing header
|
|
|
|
patch -Np1 -i ../missing-header.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
|
|
|
}
|