summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkyndair2021-03-21 06:43:51 +0000
committerkyndair2021-03-21 06:43:51 +0000
commit107bb25afd68e97127b0e6f585fa5691c3e95d3f (patch)
tree4bd88866b6049cdbf600d171a84605741da40785
downloadaur-107bb25afd68e97127b0e6f585fa5691c3e95d3f.tar.gz
Initial .SRCINFO and PKGBUILD
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD32
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4d8faa8d719
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = gog-darkest-dungeon-the-crimson-court
+ pkgdesc = DLC for the darkest_dungeon game.
+ pkgver = 24839
+ pkgrel = 1
+ url = https://www.gog.com/game/darkest_dungeon_the_crimson_court
+ arch = x86_64
+ license = custom
+ makedepends = p7zip
+ depends = gog-darkest-dungeon
+ noextract = darkest_dungeon_the_crimson_court_24839_28859.sh
+ source = darkest_dungeon_the_crimson_court_24839_28859.sh::gog://darkest_dungeon_the_crimson_court_24839_28859.sh
+ sha256sums = 3edb41b306b008099c7b42fb2d9feedfcbf0f0297372831df1143edf3393f5ea
+
+pkgname = gog-darkest-dungeon-the-crimson-court
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d7e023e2213
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: kyndair <kyndair at gmail dot com>
+# Place the gog installation file in the same folder as this PKGBUILD
+pkgname=gog-darkest-dungeon-the-crimson-court
+_dlcparent=darkest_dungeon
+_pkgname=darkest_dungeon_the_crimson_court
+pkgver=24839
+_pkgver=24839
+_build=28859
+pkgrel=1
+pkgdesc="DLC for the ${_dlcparent} game."
+arch=('x86_64')
+url="https://www.gog.com/game/${_pkgname}"
+license=('custom')
+depends=($(echo gog-${_dlcparent} | sed 's/_/-/g'))
+makedepends=('p7zip')
+source=("${_pkgname}_${_pkgver}_${_build}.sh::gog://${_pkgname}_${_pkgver}_${_build}.sh")
+# don't download anything via makepkg
+DLAGENTS+=("gog::/usr/bin/perl -E print\(\"${RED}\"\ .\ substr\(\"%u\",\ 6\)\ .\ \"\ not\ found.\ \ Check\ the\ PKGBUILD\ for\ further\ information.${ALL_OFF}\\\\n\"\)\;\ exit\ 1")
+sha256sums=('3edb41b306b008099c7b42fb2d9feedfcbf0f0297372831df1143edf3393f5ea')
+noextract=("${_pkgname}_${_pkgver}_${_build}.sh")
+
+prepare() {
+ 7z x -tzip -y ${_pkgname}_${_pkgver}_${_build}.sh
+}
+
+package() {
+ # install DLC.
+ find "${srcdir}/data/noarch/game" -type d -exec chmod 755 {} +
+ find "${srcdir}/data/noarch/game" -type f -exec chmod 644 {} +
+ mkdir -p "${pkgdir}/opt/${_dlcparent}"
+ mv "${srcdir}/data/noarch/game/"* "${pkgdir}/opt/${_dlcparent}"
+}