blob: 8489bccf1a7789714aa11a539e59d886bcf20717 (
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.6.r0.g01b5adc
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" "p7zip" "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%-*}"
}
|