desktop/trigger/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) e6d432a135 Physfs 2.0.3
2012-10-23 22:37:30 +00:00

51 lines
1.6 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# Contributor: Joao Cordeiro <jlcordeiro at gmail dot com>
# Contributor: Joekey joekey1@gmail.com
pkgbase=trigger
pkgname=("${pkgbase}" "${pkgbase}-data")
pkgver=0.6.0
pkgrel=3
pkgdesc="Free OpenGL rally car racing game."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/trigger-rally/"
license=('GPL2')
makedepends=('ftjam' 'glew' 'sdl_mixer' 'sdl_image' 'physfs' 'mesa' 'freeglut'
'freealut')
categories=('games')
source=("http://sourceforge.net/projects/trigger-rally/files/trigger-rally/trigger-${pkgver}/trigger-rally-${pkgver}-src.tar.bz2"
"http://sourceforge.net/projects/trigger-rally/files/trigger-rally/trigger-${pkgver}/trigger-rally-${pkgver}-data.tar.bz2")
md5sums=('f67301aa4e0f07dad2d696b2abbeb1f2'
'741fdd681d9387a220aff295b4ba353a')
build() {
cd "${srcdir}/trigger-rally-${pkgver}-src"
./autogen.sh
./configure --prefix=/usr \
--datadir="/opt/games/trigger/trigger-${pkgver}-data"
jam -qa
}
package_trigger() {
depends=('sdl_mixer' 'sdl_image' 'physfs' 'mesa' 'freeglut' 'freealut'
'trigger-data')
cd "${srcdir}/trigger-rally-${pkgver}-src"
install -d -m755 "${pkgdir}/usr/bin"
install -m755 trigger "${pkgdir}/usr/bin/trigger"
}
package_trigger-data() {
local _dest_dir="${pkgdir}/opt/games/trigger/trigger-${pkgver}-data"
install -d -m755 "${_dest_dir}"
mv "${srcdir}/trigger-rally-${pkgver}-data"/* "${_dest_dir}"
}
# vim:set ts=2 sw=2 et: