diff options
author | Adam Goldsmith | 2016-08-03 01:43:35 -0400 |
---|---|---|
committer | Adam Goldsmith | 2016-08-03 01:43:35 -0400 |
commit | be33fa94600563c905d5f414559f16b682ab7723 (patch) | |
tree | d56edc9828ac4cc11b5c3193aa0beccd47baaa11 | |
parent | a3441314888d62146a38cd476629c5f2e7c4d523 (diff) | |
download | aur-be33fa94600563c905d5f414559f16b682ab7723.tar.gz |
Get version from git tags
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Sat Jul 2 00:39:43 UTC 2016 +# Wed Aug 3 05:42:52 UTC 2016 pkgbase = opencamlib-git pkgdesc = Multi-Purpose CNC Toolpath Library - pkgver = 1 + pkgver = 11.10.64.g89c21a2 pkgrel = 1 url = https://github.com/aewallin/opencamlib arch = i686 @@ -1,7 +1,7 @@ # Maintainer: Adam Goldsmith <contact@adamgoldsmith.name> pkgname=opencamlib-git -pkgver=1 +pkgver=11.10.64.g89c21a2 pkgrel=1 pkgdesc="Multi-Purpose CNC Toolpath Library" arch=('i686' 'x86_64') @@ -14,6 +14,11 @@ conflicts=('opencamlib') source=("git+https://github.com/aewallin/opencamlib.git" 'CMakeLists.txt.patch') md5sums=('SKIP' 'c76fcdacce09047308509caf50a8cd5a') +pkgver() { + cd opencamlib + git describe --tags | sed 's/-/./g' +} + prepare() { cd "$srcdir/opencamlib/src" patch < $srcdir/CMakeLists.txt.patch |