From dd794ccb67cf459e75f2d5de412f2f2cf648ab2b Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Fri, 26 Jun 2020 01:47:38 +0200 Subject: [PATCH] BUMP VERSION add: pkgver() for controller --- controller-testing/PKGBUILD | 6 +++++- core-testing/PKGBUILD | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/controller-testing/PKGBUILD b/controller-testing/PKGBUILD index cd83147..d20094b 100644 --- a/controller-testing/PKGBUILD +++ b/controller-testing/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Tobias Reisinger pkgname=emgauwa-controller-testing -pkgver=0.0.1 +pkgver=0.2.0 pkgrel=1 epoch= pkgdesc="" @@ -23,6 +23,10 @@ sha256sums=("SKIP" "b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798" "5a4ce46c1302546509c0024d4614b5b0d47dde02467b7bf52b28ef6c4ead91e7") +pkgver() { + grep -Po "^ *VERSION \K[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$" "${pkgname}/CMakeLists.txt" +} + prepare() { cd "$pkgname" mkdir -p "build" diff --git a/core-testing/PKGBUILD b/core-testing/PKGBUILD index 7c48274..6daae78 100644 --- a/core-testing/PKGBUILD +++ b/core-testing/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Tobias Reisinger pkgname=emgauwa-core-testing -pkgver=0.1.3 +pkgver=0.2.0 pkgrel=1 epoch= pkgdesc=""