diff options
Diffstat (limited to 'PKGBUILD')
| -rw-r--r-- | PKGBUILD | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -3,11 +3,11 @@ _pkgname=iced-builder pkgname=$_pkgname-git -pkgver=0.1.0.r201.g4881939 -pkgrel=1 +pkgver=r212.a17a972 +pkgrel=2 pkgdesc='UI builder for iced, built with iced.' arch=(x86_64) -url='https://github.com/pml68/iced-builder' +url='https://git.sr.ht/~pml68/iced-builder' license=('GPL-3.0-or-later') depends=( gcc-libs @@ -21,7 +21,7 @@ makedepends=( options=('!lto' '!strip' '!debug') provides=("$_pkgname") conflicts=("$_pkgname") -source=("$_pkgname::git+${url}.git") +source=("$_pkgname::git+${url}") sha256sums=('SKIP') prepare() { @@ -33,10 +33,11 @@ prepare() { pkgver() { cd "${_pkgname}" - printf "%s.r%s.g%s" \ - "$(cargo pkgid | cut -d@ -f2)" \ - "$(git rev-list --count HEAD)" \ - "$(git rev-parse --short HEAD)" + ( + 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)" + ) } build() { |
