summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authordanieltetraquark2019-03-18 19:33:12 +0100
committerdanieltetraquark2019-03-18 19:33:12 +0100
commit69c69ea439ac0f3708c82c8dd8a9cc1cb9fe46ef (patch)
treef299a68f789a2300d2ba033c251b41f640322697 /PKGBUILD
parent160be532819330a7108b0d79508b7da408c13b6c (diff)
downloadaur-69c69ea439ac0f3708c82c8dd8a9cc1cb9fe46ef.tar.gz
update
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 8 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d368e440bc2..ed5357b5f13 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=pishrink-git
_name=pishrink
-pkgver=20190120
+pkgver=r58.76d2254
pkgrel=1
pkgdesc="Make your pi images smaller!"
depends=()
@@ -10,6 +10,13 @@ url="https://github.com/Drewsif/PiShrink"
source=(${pkgname}::git+$url)
sha256sums=('SKIP')
+pkgver() {
+ cd "$srcdir/$pkgname"
+
+ # Get the version number.
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
package() {
cd "$srcdir/$pkgname"
install -Dm755 pishrink.sh "$pkgdir/usr/bin/pishrink.sh"