desktop/pingus/PKGBUILD
2012-03-07 11:00:46 +00:00

35 lines
958 B
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=pingus
pkgver=0.7.6
pkgrel=1
pkgdesc="A Lemmings clone, i.e. a level-based puzzle game."
arch=('i686' 'x86_64')
url="http://pingus.seul.org"
license=('GPL')
depends=('gcc-libs' 'sdl_image' 'sdl_mixer' 'boost-libs>=1.46')
makedepends=('boost>=1.46' 'scons')
categories=('games')
source=("http://pingus.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2")
md5sums=('561798686f34d3fa4e69135d655f47ac')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
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/pingus" <<EOF
#!/bin/sh
exec "/usr/bin/pingus.bin" --datadir "/usr/share/pingus"
EOF
chmod 755 "${pkgdir}/usr/bin/pingus"
}