diff options
author | Linus Dierheimer | 2022-03-23 16:58:12 +0100 |
---|---|---|
committer | Linus Dierheimer | 2022-03-23 16:58:12 +0100 |
commit | 7a9a5005dd0dd797f759db441b8ba324eb2f3369 (patch) | |
tree | 493e07fe604f7fde240b085cfd470f0613b3ff92 | |
parent | 89ac1fbf020bd67772a242ac457014e4d8fbfc53 (diff) | |
download | aur-7a9a5005dd0dd797f759db441b8ba324eb2f3369.tar.gz |
Proper versioning
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = fastfetch-git pkgdesc = Like neofetch, but much faster because written in c - pkgver = r641.d647f9e + pkgver = 1.2.0.r2.g24a48c1 pkgrel = 1 url = https://github.com/LinusDierheimer/fastfetch arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Linus Dierheimer <Linus@Dierheimer.de> pkgname=fastfetch-git -pkgver=r641.d647f9e +pkgver=1.2.0.r2.g24a48c1 pkgrel=1 pkgdesc="Like neofetch, but much faster because written in c" arch=("x86_64" "i686" "pentium4" "armv5" "armv6h" "armv7h" "aarch64") @@ -43,15 +43,15 @@ _provides_and_conflicts=( provides=("${_provides_and_conflicts[@]}") conflicts=("${_provides_and_conflicts[@]}") -source=("${pkgname}::git+https://github.com/LinusDierheimer/fastfetch.git") +_src_dir="${pkgname}" +source=("${_src_dir}::git+https://github.com/LinusDierheimer/fastfetch.git") sha256sums=("SKIP") -_src_dir="${pkgname}" _build_dir="build" pkgver() { cd "${_src_dir}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { |