summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b935321bbd9a2c85acbf95954c2aeb1f50a959f6 (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
# Maintainer: Ren Tatsumoto <tatsu at autistici dot org>

pkgname=gd-tools-git
pkgver=1.0.r15.g4fce1fc
pkgrel=1
pkgdesc="A set of helpful programs to enhance goldendict for immersion learning."
arch=("x86_64")
url="https://github.com/Ajatt-Tools/gd-tools"
license=("GPL3")
makedepends=("git" "xmake" "gcc" "nlohmann-json" "marisa" "fmt")
provides=("gd-tools")
conflicts=("gd-tools")
source=("$pkgname::git+https://github.com/Ajatt-Tools/gd-tools.git#branch=main")
sha256sums=('SKIP')

pkgver() {
	cd -- "$srcdir/$pkgname"
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd -- "$srcdir/$pkgname"
	xmake config --mode=release
	xmake build -vwy "${pkgname%-*}"
}

package() {
	cd -- "$srcdir/$pkgname"
	xmake install --root -v --installdir="${pkgdir}/usr" "${pkgname%-*}"
}