diff options
author | haawda | 2018-10-25 20:26:28 +0200 |
---|---|---|
committer | haawda | 2018-10-25 20:26:28 +0200 |
commit | 8ce395442722cf30f0e22032c7a43e93c7494c9c (patch) | |
tree | 505b69f2c19148e40d07fefa685ab793f3d0dd7f /PKGBUILD | |
parent | 49bd9b790d0d4523bf9d49658fa2d02bdac1240e (diff) | |
download | aur-8ce395442722cf30f0e22032c7a43e93c7494c9c.tar.gz |
new pkgver function
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -4,22 +4,23 @@ # Based on original tikzit-aur-package made by pippin pkgname=tikzit-git -pkgver=r376 +pkgver=2.0.5.g19a3a0f pkgrel=1 pkgdesc="Creation and modification of TeX diagrams written using the pgf/TikZ macro library - rewrite in QT and C++" arch=('i686' 'x86_64') -url="https://github.com/tikzit/tikzit.git" +url="https://tikzit.github.io/" license=('GPL') depends=('qt5-base') makedepends=('git') provides=('tikzit') +conflicts=('tikzit') source=('git+https://github.com/tikzit/tikzit.git') md5sums=('SKIP') options=('!makeflags') pkgver() { cd ${pkgname%-git} - printf "r%s" "$(git rev-list --count HEAD)" + printf "%s" "$(git describe --tags | cut -c2- |tr - .)" } build() { @@ -32,5 +33,5 @@ build() { package() { cd ${pkgname%-git} - install -Dm755 tikzit "$pkgdir"/usr/bin/tikzit-qt + install -Dm755 tikzit "$pkgdir"/usr/bin/tikzit } |