summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8671490d675..9d815dd6e93 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,20 +33,21 @@ source=("git+https://github.com/crosswire/xiphos.git")
sha256sums=('SKIP')
pkgver() {
- cd "${pkgname%-git}"
- git describe --tags --abbrev=7 HEAD | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ cd "${pkgname%-git}"
+ git describe --tags --abbrev=7 --match="[0-9]*" HEAD |
+ sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd "${pkgname%-git}"
- cmake -S . -B build \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DGTKHTML=ON
- make -C build
+ cd "${pkgname%-git}"
+ cmake -S . -B build \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DGTKHTML=ON
+ make -C build
}
package() {
- cd "${pkgname%-git}"
- make -C build DESTDIR="$pkgdir" install
+ cd "${pkgname%-git}"
+ make -C build DESTDIR="$pkgdir" install
}