make pkgver based off git revision

makepkg
Jeff Becker 3 years ago committed by Jeff Becker
parent 0551045ce7
commit 8b6978495a
No known key found for this signature in database
GPG Key ID: 025C02EE3A092F2D

@ -1,6 +1,5 @@
# Maintainer: jeff <jeff@oxen.io>
pkgname=lokinet-git
pkgver=420.69.poggerinos.yoloswag.fresh.af.from.git
pkgrel=3
pkgdesc="Anonymous, decentralized and IP based overlay network for the internet."
arch=('x86_64' 'aarch64')
@ -12,6 +11,11 @@ conflicts=('lokinet' 'lokinet-bin')
source=("lokinet-git::git+https://github.com/oxen-io/lokinet#branch=makepkg")
b2sums=('SKIP')
pkgver() {
cd "$srcdir/lokinet-git"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd lokinet-git
git submodule update --init --recursive

Loading…
Cancel
Save