summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: baee2cfc38e503b967af0dff66e8e4096075d63b (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
56
57
58
59
60
61
62
63
64
65
# Maintainer: Dan Beste <drb@wishalloy.io>

pkgname='gog-stardew-valley'
pkgver=1.4.5
pkgrel=1
# Fix upstream versioning shenanigans:
epoch=1
pkgdesc="You’ve inherited your grandfather’s old farm plot in Stardew Valley.
Armed with hand-me-down tools and a few coins, you set out to begin your new
life."
url='http://stardewvalley.net/'
license=('custom')
arch=('x86_64')
source=(
  "${pkgname}"
  "${pkgname}.desktop"
  'local:///stardew_valley_1_4_5_433754439_36068.sh'
  'StardewValley'
)
sha256sums=(
  '9f51b56b351824493c381731f29175b0897fa0dc4169a9b9160b5a12003883dc'
  'ca0fe151f73f5e8b594b226e1b0539655a2d95a7848eb0e43961cb6daa0de2ff'
  '1770fccdf0e159adaf891b0f0293630d11a2217b47a40232b0efd6e0abe36070'
  '0c6826084d72917748e54f9308b7395f8d3780b4a745860839203e2af428d202'
)
package() {
  install -d "${pkgdir}/opt/${pkgname}/"
  install -d "${pkgdir}/opt/${pkgname}/support/"
  install -d "${pkgdir}/usr/bin/"
  install -d "${pkgdir}/usr/share/applications/"
  install -d "${pkgdir}/usr/share/licenses/${pkgname}/"
  install -d "${pkgdir}/usr/share/pixmaps/"

  cp -r data/noarch/game "${pkgdir}/opt/${pkgname}/"
  find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} \;

  install -m 755           \
    "${srcdir}/${pkgname}" \
    "${pkgdir}/usr/bin/${pkgname}"
  install -m 755         \
    data/noarch/start.sh \
    "${pkgdir}/opt/${pkgname}/"
  install -m 755                     \
    data/noarch/support/*.{sh,shlib} \
    "${pkgdir}/opt/${pkgname}/support/"
  install -m 644                                      \
    'data/noarch/docs/End User License Agreement.txt' \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -m 644                   \
    "data/noarch/support/icon.png" \
    "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  install -m 644                   \
    "${srcdir}/${pkgname}.desktop" \
    "${pkgdir}/usr/share/applications/${pkgname}.desktop"

  # Workarounds for upstream silliness:
  cd "${pkgdir}/opt/gog-stardew-valley/game"
  # Unless i686 is requested, I am only going to support machine architectures
  # that I can test with:
  ln -s mcs.bin.x86_64 mcs
  # Simplified "bootstrapping" script:
  install -m 755 "${srcdir}/StardewValley" StardewValley
}

# vim: ts=2 sw=2 et: