summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 20154b6ea0bb92ccc1c534cf07a688fe58f667ab (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
41
# Maintainer: Can Celasun <dcelasun[at]gmail[dot]com>
pkgname=the-entertainment
pkgver=1
pkgrel=1
pkgdesc="The Entertainment - Kentucky Route Zero"
arch=(i686 x86_64)
url="http://kentuckyroutezero.com/the-entertainment/"
license=('custom')
depends=(libgl)
source=(http://kentuckyroutezero.com/the-entertainment/TheEntertainment_Linux.zip
        the-entertainment.desktop
        the-entertainment.png)
md5sums=('025c9455b1501ab029c979c22c0a4d45'
         'ea2aaac64fb39dc1bd7b843447d15a1a'
         '0419c3664dfb775393b30459d6d2d0a8')

package() {
  cd "${srcdir}"
  
  mkdir -p "${pkgdir}"/usr/bin
  mkdir -p "${pkgdir}"/usr/share/the-entertainment
  mkdir -p "${pkgdir}"/usr/share/{applications,icons}
  
  cp "${srcdir}"/TheEntertainment_Data "${pkgdir}"/usr/share/the-entertainment -R
  
  if [ "${CARCH}" = "x86_64" ]; then
    install -m755 "${srcdir}"/TheEntertainment.x86_64 "${pkgdir}"/usr/share/the-entertainment/TheEntertainment
  else
    install -m755 "${srcdir}"/TheEntertainment.x86 "${pkgdir}"/usr/share/the-entertainment/TheEntertainment
  fi
  
  find "${pkgdir}/usr/share/the-entertainment" -type d -exec chmod 755 "{}" \;
  find "${pkgdir}/usr/share/the-entertainment" -type f -exec chmod 644 "{}" \;
  
  install -m644 "${srcdir}"/the-entertainment.png "${pkgdir}"/usr/share/icons
  install -m644 "${srcdir}"/the-entertainment.desktop "${pkgdir}"/usr/share/applications
  
  chmod +x "${pkgdir}"/usr/share/the-entertainment/TheEntertainment
  
  ln -s /usr/share/the-entertainment/TheEntertainment "${pkgdir}"/usr/bin/the-entertainment
}