summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a01e14528c2b0e74c3392259fef0de001ff447e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: D. Can Celasun <dcelasun[at]gmail[dot]com>

pkgname=systems-nominal
pkgver=1.0
pkgrel=3
pkgdesc="An experimental game by Nerd^3"
arch=('i686' 'x86_64')
url="http://www.nerdcubed.co.uk/games/"
license=('custom: commercial')
depends=('libgl' 'gconf' 'cairo' 'fontconfig' 'gtk2' 'nss' 'libxtst' 'gcc-libs' 'alsa-lib' 'libudev0-shim')
md5sums=('688f9172036bb86ee372bd7fbfd254f5'
         'ab6dfe6c1ce9f311aace15c5a6855c75'
         '1662b26049165ed241ec2f4d756749fc')
PKGEXT=.pkg.tar
source=(http://assets.nerdcubed.co.uk/systems_nominal_${pkgver}_linux.7z
        ${pkgname}.desktop
        ${pkgname}.png)
        
_game_path=systems_nominal_${pkgver}_linux
        
if test "$CARCH" == i686; then
  __arch=linux32
elif test "$CARCH" == x86_64; then
  __arch=linux64
fi

package() {
  cd "${srcdir}"

  install -d "${pkgdir}/usr/bin"
  install -d "${pkgdir}/usr/share/applications"
  install -d "${pkgdir}/usr/share/icons"
  install -d "${pkgdir}/usr/share/${pkgname}"

  cp -r ${__arch}/* "${pkgdir}"/usr/share/${pkgname}
  install -m644 "${srcdir}"/${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop
  install -m644 "${srcdir}"/${pkgname}.png "${pkgdir}"/usr/share/icons/
  
  ln -s /usr/share/${pkgname}/systemsnominal "${pkgdir}"/usr/bin/${pkgname}
}