blob: 0316bae0206628668e1e0a3245f2330e0ba73964 (
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
|
# Maintainer: kyndair <kyndair at gmail dot com>
# Place the gog installation file in the same folder as this PKGBUILD
pkgname=gog-darkest-dungeon-musketeer
_dlcparent=darkest_dungeon
_pkgname=darkest_dungeon_musketeer
pkgver=24839
_pkgver=24839
_build=28859
pkgrel=1
pkgdesc="DLC for the $(echo ${_dlcparent} | sed 's/_/ /g') game."
arch=('any')
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=('0fce8f4f4cab31733e39bb02fbde8df8e868de9fe8b7d79a696fb4981f6d9c54')
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}"
}
|