desktop/pingus/PKGBUILD

43 lines
1.4 KiB
Bash
Raw Normal View History

pkgname=pingus
2011-12-29 01:07:20 +08:00
pkgver=0.7.6
2017-06-01 16:15:17 +08:00
pkgrel=5
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')
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')
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
}
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"
}