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!
11 pkgdesc="3D car simulator with realistic physics and render engine"
12 arch=('i686' 'x86_64')
13 url="http://www.racer.nl/"
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')
26 tar -zxvf racer${pkgver}.tgz
30 cp -r "racer/" "${pkgdir}/opt/${pkgname}"
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
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"