updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / racer-3d / PKGBUILD
blob36413a9768cf0e53755bd8ce719a9d09a1109013
1 # Contributor: Stefan Wilkens <stefanwilkens@gmail.com>
2 # Contributor: Devin Cofer <ranguvar{AT]archlinux[DOT}us>
4 # note: package was named to include "-3d" due to another package
5 # already being in the AUR with the name "racer". Update the
6 # source link if you update this PKGBUILD!
8 pkgname=racer-3d
9 pkgver=054b1
10 pkgrel=3
11 pkgdesc="3D car simulator with realistic physics and render engine"
12 arch=('i686' 'x86_64')
13 url="http://www.racer.nl/"
14 license=('custom')
15 [ "$CARCH" == "i686" ] && depends=('fmodex')
16 [ "$CARCH" == "x86_64" ] && depends=('lib32-fmodex')
17 source=(http://www.racer.nl/download/racer$pkgver.tgz racer-3d.desktop racer-3d.sh LICENSE)
18 md5sums=('a779d3cd4e5a282c2d08b7750ccd1c57'
19          '4ebd14c858fe5abf535eb37fb7148189'
20          '68af8419e3a1d381a12b1ac60e45e94a'
21          '51a9cac34e83de7d9e60a598225f0967')
23 build() {
24         # Extract
25         cd ${srcdir}
26         tar -zxvf racer${pkgver}.tgz
27         
28         # Install
29         mkdir ${pkgdir}/opt
30         cp -r "racer/" "${pkgdir}/opt/${pkgname}"
31         
32         # Allow people in the users group write access for config files
33         chown root:users "${pkgdir}/opt/${pkgname}" -R
34         chmod 774 "${pkgdir}/opt/${pkgname}" -R
35         
36         # Install script, desktop entry and licence
37         install -Dm755 "${srcdir}/racer-3d.sh" "${pkgdir}/usr/bin/racer-3d"
38         install -Dm644 "${srcdir}/racer-3d.desktop" "${pkgdir}/usr/share/applications/racer-3d.desktop"
39         install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"