add: pkgver() function

This commit is contained in:
Tobias Reisinger 2020-06-17 01:12:47 +02:00
parent 2b33dbc4af
commit 474478c3a7

View file

@ -1,6 +1,6 @@
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
pkgname=emgauwa-core-testing
pkgver=0.0.1
pkgver=0.1.0
pkgrel=1
epoch=
pkgdesc=""
@ -23,6 +23,10 @@ sha256sums=("SKIP"
"b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798"
"0531f10303410afd7e53099e66b124ef2fd14afec9d33c4a0146793375acb6c2")
pkgver() {
grep -Po "^ *VERSION \K[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$" "${pkgname}/CMakeLists.txt"
}
prepare() {
cd "$pkgname"
mkdir -p "build"