add: pkgver() function
This commit is contained in:
parent
2b33dbc4af
commit
474478c3a7
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
||||||
pkgname=emgauwa-core-testing
|
pkgname=emgauwa-core-testing
|
||||||
pkgver=0.0.1
|
pkgver=0.1.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
epoch=
|
epoch=
|
||||||
pkgdesc=""
|
pkgdesc=""
|
||||||
|
@ -23,6 +23,10 @@ sha256sums=("SKIP"
|
||||||
"b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798"
|
"b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798"
|
||||||
"0531f10303410afd7e53099e66b124ef2fd14afec9d33c4a0146793375acb6c2")
|
"0531f10303410afd7e53099e66b124ef2fd14afec9d33c4a0146793375acb6c2")
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
grep -Po "^ *VERSION \K[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$" "${pkgname}/CMakeLists.txt"
|
||||||
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$pkgname"
|
cd "$pkgname"
|
||||||
mkdir -p "build"
|
mkdir -p "build"
|
||||||
|
|
Reference in a new issue