diff options
author | Erich Eckner <git@eckner.net> | 2017-12-04 08:50:37 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-12-04 08:50:37 +0100 |
commit | 649a6ab24bb255039b6120f5bb79e88750297189 (patch) | |
tree | 1ed0fe80f545fdd16693a2fce685d311bc4f4b03 /dbmodel/PKGBUILD | |
parent | 02ac060adca256f1497aa17a403b26b9dfb737c5 (diff) | |
download | archlinuxewe.git.save-649a6ab24bb255039b6120f5bb79e88750297189.tar.xz |
dbmodel 0.3.x.55f7d76d901bd8683ecdee7b41fab4677782251d-1 -> 0.3.r129.6045f9a-1
Diffstat (limited to 'dbmodel/PKGBUILD')
-rwxr-xr-x | dbmodel/PKGBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dbmodel/PKGBUILD b/dbmodel/PKGBUILD index f3042866..b76c6cca 100755 --- a/dbmodel/PKGBUILD +++ b/dbmodel/PKGBUILD @@ -1,7 +1,9 @@ # Maintainer: Erich Eckner <arch at eckner dot net> pkgname=dbmodel -pkgver=0.3 +pkgver=0.3.r129.6045f9a pkgrel=1 +_pkgver=${pkgver%.*.*} +_commit=${pkgver##*.} pkgdesc='visualize a database' arch=('i686' 'x86_64') url='https://oxygene.sk/projects/dbmodel/' @@ -17,10 +19,15 @@ replaces=() backup=() options=() source=( - "${pkgname}::git+https://bitbucket.org/lalinsky/dbmodel.git" + "${pkgname}::git+https://bitbucket.org/lalinsky/dbmodel.git#commit=${_commit}" ) sha512sums=('SKIP') +pkgver(){ + cd "${pkgname}" + printf "%s.r%s" "${_pkgver}" "$(git rev-list --count ${_commit}).$(git rev-parse --short ${_commit})" +} + prepare() { cd "${srcdir}/${pkgname}" |