mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 19:37:14 +08:00
34 lines
937 B
Bash
34 lines
937 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')
|
|
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"
|
|
}
|