mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-21 20:14:59 +02:00
fix(ver): add pkgver() to the pkgbuild.
This commit is contained in:
@@ -15,6 +15,11 @@ groups=()
|
||||
source=("https://github.com/Snigdha-OS/${pkgname}/archive/refs/tags/${_pkgver}.tar.gz")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$pkgname" || exit
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cmake -B build -S "$pkgname-$_pkgver" \
|
||||
-DCMAKE_BUILD_TYPE='Release' \
|
||||
|
Reference in New Issue
Block a user