diff options
author | archibate | 2022-04-25 16:06:16 +0800 |
---|---|---|
committer | archibate | 2022-04-25 16:06:16 +0800 |
commit | 5ef556b35a930df08e82540394dce92d91d5b7a3 (patch) | |
tree | d4027c85844bb235cfaf484b2ad89be3a6196600 | |
parent | 2f24714d8903c76963e5402c42275ed20866db27 (diff) | |
download | aur-5ef556b35a930df08e82540394dce92d91d5b7a3.tar.gz |
use git as version
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 16 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = zeno pkgdesc = Open-source node system framework for simulation and others - pkgver = 2022.4.25 + pkgver = git pkgrel = 1 url = https://gitee.com/zenustech/zeno arch = x86_64 @@ -17,7 +17,7 @@ pkgbase = zeno depends = openblas depends = lapack depends = hdf5 - source = zeno-2022.4.25::git+https://gitee.com/zenustech/zeno.git + source = zeno-git::git+https://gitee.com/zenustech/zeno.git md5sums = SKIP pkgname = zeno @@ -1,6 +1,6 @@ # Maintainer: Yubin Peng <1931127624@qq.com> pkgname=zeno -pkgver=2022.4.25 +pkgver=git pkgrel=1 pkgdesc="Open-source node system framework for simulation and others" arch=('x86_64') @@ -13,9 +13,21 @@ source=("${pkgname}-${pkgver}::git+${url}.git") noextract=() md5sums=('SKIP') -package() { +pkgver() { + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd ${pkgname}-${pkgver} +} + +build() { cd ${pkgname}-${pkgver} cmake --preset default -G Ninja -DCMAKE_INSTALL_PREFIX="${pkgdir}" cmake --build --preset default --parallel +} + +package() { + cd ${pkgname}-${pkgver} cmake --build --preset default --target install } |