summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d041e994585..80e0777d26d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = pishrink-git
pkgdesc = Make your pi images smaller!
- pkgver = 20190120
+ pkgver = r58.76d2254
pkgrel = 1
url = https://github.com/Drewsif/PiShrink
arch = any
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"