~siborgium/dumbme

c93a94b9b7c658da3f651c847fe8a7d5a1e27d2a — Sergey Smirnykh 10 months ago a8ab84f 1.2
Extract pkgver from git
1 files changed, 7 insertions(+), 1 deletions(-)

M PKGBUILD
M PKGBUILD => PKGBUILD +7 -1
@@ 8,8 8,14 @@ license=('GPL3')
depends=('glibc') # use musl if you want to
source=("git+https://git.sr.ht/~siborgium/dumbme#branch=master")
sha256sums=('SKIP')

pkgver() {
    	cd $pkgname
    	git describe --tags --long | sed 's/^v//;s/-/./g'
}

build() {
        make
        make -C "$pkgname" all
}
package() {
        install -D -o root -g root -m 755 dumbme "$pkgdir/usr/bin/dumbme"