diff options
author | LevitatingBusinessMan (Rein Fernhout) | 2022-10-05 03:12:09 +0200 |
---|---|---|
committer | LevitatingBusinessMan (Rein Fernhout) | 2022-10-05 03:12:09 +0200 |
commit | e10f528a97083e0a84147140aa1ec3351a64eb9b (patch) | |
tree | 218181a8764f8e5e909ccab220941f3e33f3b72a | |
parent | a65a4456607a1bac6226a780717526aba7408e68 (diff) | |
download | aur-e10f528a97083e0a84147140aa1ec3351a64eb9b.tar.gz |
Changed pkgver function
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@ #Maintainer: Rein Fernhout (LevitatingBusinessMan) <public@reinfernhout.xyz> pkgname=alcase -pkgver=fb11109 +pkgver=r6.c8f6f24 arch=("x86_64") pkgrel=1 pkgdesc="Turn text into alternating case" @@ -12,8 +12,8 @@ source=("git+https://github.com/LevitatingBusinessMan/alcase.git") sha256sums=("SKIP") pkgver() { - cd "${srcdir}/${pkgname}" - git rev-parse --short HEAD + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { @@ -24,4 +24,4 @@ build() { package() { cd "${srcdir}/${pkgname}" DESTDIR="$pkgdir" make install -}
\ No newline at end of file +} |