mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
49 lines
1.7 KiB
Bash
49 lines
1.7 KiB
Bash
pkgbase=trigger
|
|
pkgname=("${pkgbase}" "${pkgbase}-data")
|
|
pkgver=0.6.2
|
|
pkgrel=1
|
|
pkgdesc="Free OpenGL rally car racing game."
|
|
arch=('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-$pkgver/trigger-rally-${pkgver}-src.tar.bz2"
|
|
"http://sourceforge.net/projects/trigger-rally/files/trigger-$pkgver/trigger-rally-${pkgver}-data.tar.bz2"
|
|
"trigger.desktop")
|
|
sha256sums=('0e554cbb362e41019f2495657dec8378126d4d21128774daecd6d2f7632ceb55'
|
|
'22cb5de00b9cd71b25c7ebc245e6d93318435c5541ce36940e8269c6be756030'
|
|
'3272cd424bd48dca72490975b9305f5e2abe40774ef9e4b6e9ab741b0879bd2a')
|
|
|
|
build() {
|
|
cd "${srcdir}/trigger-rally-${pkgver}-src"
|
|
|
|
./autogen.sh
|
|
./configure --prefix=/usr \
|
|
--datadir="/usr/share/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"
|
|
install -D ../trigger.desktop ${pkgdir}/usr/share/applications/trigger.desktop
|
|
install -D ${srcdir}/trigger-rally-${pkgver}-data/icon/trigger-rally-icons.svg\
|
|
${pkgdir}/usr/share/pixmaps/trigger.svg
|
|
}
|
|
|
|
package_trigger-data() {
|
|
local _dest_dir="${pkgdir}/usr/share/trigger/trigger-${pkgver}-data"
|
|
|
|
install -d -m755 "${_dest_dir}"
|
|
cp -r "${srcdir}/trigger-rally-${pkgver}-data"/* "${_dest_dir}"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|