diff options
author | Tommaso Sardelli | 2024-02-08 23:53:18 +0100 |
---|---|---|
committer | Tommaso Sardelli | 2024-02-08 23:53:18 +0100 |
commit | 25ef765df98c4e981387f0dd83215390f051ffbd (patch) | |
tree | ae2f30c99771b295de4af12599e39e3cd9b50cf8 /PKGBUILD | |
parent | 2de604d933da228248c993830cb06e88a068d811 (diff) | |
download | aur-bashmarks-git.tar.gz |
Switch to git+https protocol and include commit hash in package version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -2,8 +2,8 @@ _pkgname=bashmarks pkgname=${_pkgname}-git -pkgver=43 -pkgrel=3 +pkgver=r48.264952f +pkgrel=1 pkgdesc='A shell script that allows you to save and jump to commonly used directories' arch=('any') url="https://github.com/huyng/${_pkgname}" @@ -12,12 +12,15 @@ makedepends=('git') provides=("$_pkgname") conflicts=("$_pkgname") install="$pkgname.install" -source=("git://github.com/huyng/${_pkgname}.git") -md5sums=('SKIP') +source=("git+https://github.com/huyng/${_pkgname}.git") +sha512sums=('SKIP') pkgver() { - cd "$srcdir/$_pkgname" - git rev-list --count HEAD + cd "$_pkgname" + ( set -o pipefail + git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" + ) } package() { |