updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / corebreach / PKGBUILD
blobc250718d4f8cfeb53eb5b3c52e4ded91befe686a
1 # Maintainer: TastyPi <grogers3.14@gmail.com>
2 pkgname=corebreach
3 _appname=CoreBreach
4 pkgver=1.1
5 pkgrel=1
6 pkgdesc='Futuristic "anti-gravity" racing game with combat-based gameplay. (Requires copy of game)'
7 arch=('x86_64' 'i686')
8 url="http://corebreach.corecode.at/"
9 license=('custom: "commercial"')
10 depends=('sdl' 'sdl_mixer' 'openal' 'libgl' 'cairo' 'gtk2' 'libxt' 'zlib')
11 source=("${pkgname}.sh" "${pkgname}.desktop")
12 md5sums=('f84c8f014e3a084c8253b79c0d1e82ef'
13          '448095f70ce219bdc13d80602c1221e9')
15 if test "$CARCH" == x86_64; then
16   source=("${source[@]}" "file://${pkgname}_${pkgver}_amd64.tar")
17   md5sums=("${md5sums[@]}" '921d1f385d354a59b52ee3706c5794c1')
18 else
19   source=("${source[@]}" "file://${pkgname}_${pkgver}_i386.tar")
20   md5sums=("${md5sums[@]}" 'e3da3222115d7dba6536fa35eb695d81')
24 build() {
25   true #functions can't be empty in bash
28 package() {
29   if test "$CARCH" == x86_64; then
30     cd ${srcdir}/${_appname}-${pkgver}-Linux64
31   else
32     cd ${srcdir}/${_appname}-${pkgver}-Linux32
33   fi
34   
35   # Install game data
36   install -d ${pkgdir}/opt/${pkgname}
37   cp -r ./* ${pkgdir}/opt/${pkgname}
38   
39   cd ${srcdir}
40   
41   # Install shell script to start the game
42   install -d ${pkgdir}/usr/bin
43   install ${pkgname}.sh ${pkgdir}/usr/bin/${pkgname}
44   
45   # Install .desktop file
46   install -d ${pkgdir}/usr/share/applications
47   install ${pkgname}.desktop ${pkgdir}/usr/share/applications