summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2dc8249c5fb8f908dc486936c75a63821f1cb4d (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Joonas Henriksson <joonas.henriksson at gmail com>

pkgname='gog-race-the-sun'
pkgver=2.4.0.8
pkgrel=1
pkgdesc="Race against the sunset at insane speeds through an infinite procedural world."
url='http://flippfly.com/racethesun/'
license=('custom')
arch=('x86_64' 'i686')
depends=('zlib' 'libGL.so')
source=(
  "${pkgname}"
  "${pkgname}.desktop"
  "gog_race_the_sun_${pkgver}.sh::gogdownloader://race_the_sun/en3installer3"
)
sha256sums=('4b48b6cf2df63532d7ac597d54e235d1484792067190bcea74d19158db193e71'
            '6019acb30ae95360ae7560f4b075a02375c9543ef85baf4afab7b11f489c69b3'
            '52735beb981d7853e8f40129f8d481eff454a31daf327f462e068b8e03ee1b27')

DLAGENTS+=('gogdownloader::/usr/bin/lgogdownloader --download-file=%u -o %o')

prepare() {
  find . -type d -exec chmod 755 {} \;
}

package() {
  install -d "${pkgdir}/opt/${pkgname}/"
  mv \
    "${srcdir}/data/noarch/game" \
    -t "${pkgdir}/opt/${pkgname}/"

  install -D -m 755 -T \
    "${srcdir}/${pkgname}" \
    "${pkgdir}/usr/bin/${pkgname}"
  install -D -m 755 \
    "${srcdir}/data/noarch/start.sh" \
    -t "${pkgdir}/opt/${pkgname}/"
  install -D -m 755 \
    "${srcdir}"/data/noarch/support/*.{sh,shlib} \
    -t "${pkgdir}/opt/${pkgname}/support/"
  install -D -m 644 \
    "${srcdir}/data/noarch/gameinfo" \
    -t "${pkgdir}/opt/${pkgname}/"

  install -D -m 644 -T \
    "${srcdir}/data/noarch/docs/End User License Agreement.txt" \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -D -m 644 -T \
    "${srcdir}/data/noarch/support/icon.png" \
    "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  install -D -m 644 -T \
    "${srcdir}/${pkgname}.desktop" \
    "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}