blob: 3a0d24035ecfc915ff5f81414ae87e2641fdc81b (
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
|
# Maintainer: Andy Alt <andy400-dev@yahoo.com>
# Maintainer: Ilan Frumer <ilanfrumer@gmail.com>
_modname=boongui
pkgname=0ad-${_modname}
pkgver=2.4.1
pkgrel=1
pkgdesc="User interface mod for the RTS game 0 A.D."
arch=('any')
url="https://github.com/LangLangBart/boonGUI"
license=('MIT', 'CCPL')
makedepends=('unzip')
#depends=('0ad')
source=("${url}/releases/latest/download/${_modname}.pyromod")
noextract=("${source[@]##*/}")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}"
unzip -oq "${_modname}.pyromod" "mod.json"
cat "mod.json" | grep -oP '(?<="version": ")[^"]*'
}
package() {
cd "${srcdir}"
unzip -o "${_modname}.pyromod" "ARTWORK_and_LICENSE.txt"
install -Dm644 "ARTWORK_and_LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "${_modname}.pyromod" -t "${pkgdir}/usr/share/0ad/data/mods/${_modname}"
cd "${pkgdir}/usr/share/0ad/data/mods/${_modname}"
unzip -o "${_modname}.pyromod" "mod.json"
}
|