diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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" |