blob: 3f418e607b0ac3b303653aa62480be3f0a908352 (
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
|
# Maintainer: silver hikari <kerrickethan@gmail.com>
pkgname=gridmonger-git
pkgver=1.1.0.r147.e677627
epoch=1
pkgrel=3
pkgdesc="Your trusty old-school cRPG mapping companion"
arch=('x86_64')
url="https://gridmonger.johnnovak.net/"
license=('custom:WTFPL')
depends=('zenity' 'libxxf86vm' 'libglvnd' 'libxi' 'libxrandr' 'libx11' 'libxinerama' 'libxcursor')
makedepends=('git' 'nim' 'dart-sass' 'python-sphinx' 'gendesk')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/johnnovak/gridmonger#commit=e6776279a1952232cffb59f893a5d06e30e55630' 'git+https://github.com/johnnovak/koi#commit=aee85e888bb953e6ab2ba0a260cb91c2bf18511a' 'git+https://github.com/johnnovak/nim-glfw#branch=gridmonger')
md5sums=('SKIP' 'SKIP' 'SKIP')
install=gridmonger.install
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}
prepare() {
gendesk -n -f --pkgname="${pkgname%-git}" --pkgdesc="$pkgdesc" --exec="/opt/gridmonger/gridmonger" --icon="/usr/share/pixmaps/gridmonger.png"
atlas init --deps=deps
cd "${pkgname%-git}"
echo -e "requires \"nanovg\"\nrequires \"osdialog\"\nrequires \"riff\"\nrequires \"winim\"\nrequires \"file://$srcdir/nim-glfw\"\nrequires \"file://$srcdir/koi\"" > 'gridmonger.nimble'
atlas install gridmonger.nimble
}
build() {
cd "$srcdir/${pkgname%-git}"
nim release -d:osdialogZenity --rangeChecks:off
}
package() {
cd "$srcdir/${pkgname%-git}"
install -d "${pkgdir}/opt/gridmonger/Config"
strip "gridmonger"
install -Dm755 "gridmonger" "${pkgdir}/opt/gridmonger/gridmonger"
cp -fr "Data" "${pkgdir}/opt/gridmonger/Data"
cp -fr "Example Maps" "${pkgdir}/opt/gridmonger/Example Maps"
cp -fr "Themes" "${pkgdir}/opt/gridmonger/Themes"
#Docs
install -d "${pkgdir}/usr/share/doc/gridmonger/"
nim manual
cp -fr "Manual" "${pkgdir}/usr/share/doc/gridmonger"
chmod -R 775 "$pkgdir/opt/gridmonger"
chgrp games "$pkgdir/opt/gridmonger"
#desktop file and cmd executable
install -Dm755 "${srcdir}/gridmonger.desktop" "${pkgdir}/usr/share/applications/gridmonger.desktop"
install -Dm755 "extras/appicons/app-icon.png" "${pkgdir}/usr/share/pixmaps/gridmonger.png"
install -d "$pkgdir/usr/bin"
ln -s "/opt/gridmonger/gridmonger" "$pkgdir/usr/bin/gridmonger"
install -Dm755 "COPYING" "$pkgdir/usr/share/licenses/gridmonger/LICENSE"
}
|