diff options
author | Markus Richter | 2022-12-04 22:53:06 +0100 |
---|---|---|
committer | Markus Richter | 2022-12-04 22:57:11 +0100 |
commit | 0d3323545f960a02f57fac5cc186e9c53930c4e2 (patch) | |
tree | 7453198d9339d48d61e2681e773b45b55fa96561 | |
parent | 439244ed00553eb3b80f76910ff8790c557e2cca (diff) | |
download | aur-boilr-git.tar.gz |
Setup -git package
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 25 insertions, 16 deletions
@@ -1,16 +1,17 @@ -pkgbase = boilr +pkgbase = boilr-git pkgdesc = A CLI tool for creating and using templates for common actions - pkgver = 0.4.5 + pkgver = 0.4.5.r16.g5c29306 pkgrel = 1 - url = https://github.com/Ilyes512/boilr + url = https://github.com/timsolov/boilr arch = i686 arch = x86_64 arch = armv7h arch = aarch64 license = Apache makedepends = go - source = https://github.com/Ilyes512/boilr/archive/0.4.5.tar.gz - sha512sums = fde934c2fab5ad06b1f02abb43423ffeb780cf1002a7348d08bf6d59a84cb4d7e460efa8cbe2261662e4d55cecb6fb396b36e1060afb9eda2568f2f1ad20d543 - -pkgname = boilr + provides = boilr + conflicts = boilr + source = git+https://github.com/timsolov/boilr.git + sha512sums = SKIP +pkgname = boilr-git @@ -1,23 +1,31 @@ # Maintainer: Markus Richter <mqus at disroot dot org> - -pkgname=boilr -pkgver=0.4.5 +_pkgbase=boilr +pkgname="$_pkgbase"-git +pkgver=0.4.5.r16.g5c29306 pkgrel=1 pkgdesc="A CLI tool for creating and using templates for common actions" arch=('i686' 'x86_64' 'armv7h' 'aarch64') -url="https://github.com/Ilyes512/boilr" +url="https://github.com/timsolov/boilr" license=('Apache') depends=() optdepends=() makedepends=('go') -source=("https://github.com/Ilyes512/$pkgname/archive/$pkgver.tar.gz") -sha512sums=('fde934c2fab5ad06b1f02abb43423ffeb780cf1002a7348d08bf6d59a84cb4d7e460efa8cbe2261662e4d55cecb6fb396b36e1060afb9eda2568f2f1ad20d543') - +provides=("$_pkgbase") +conflicts=("$_pkgbase") +source=("git+https://github.com/timsolov/$_pkgbase.git") +sha512sums=('SKIP') +pkgver() { + cd "$srcdir/$_pkgbase" + ( set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} build() { #build boilr binary - cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir/$_pkgbase" go build \ -trimpath \ @@ -30,5 +38,5 @@ build() { package() { # copy binary - install -D -m 0755 "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -D -m 0755 "$srcdir/$_pkgbase/$_pkgbase" "$pkgdir/usr/bin/$_pkgbase" } |