From 549b41de1c97e612195bb4c06d050009f3e09825 Mon Sep 17 00:00:00 2001 From: mar77i Date: Sat, 3 Sep 2016 14:36:01 +0200 Subject: use tags for generating pkgver, like in dwm-git --- PKGBUILD | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index b9a9f9a..1bd003d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,10 +1,10 @@ -# Maintainer: mar77i +# Maintainer: mar77i # Past Maintainer: Gaetan Bisson # Contributor: Scytrin dai Kinthra pkgname=st-git _pkgname=st -pkgver=20160309.3996461 +pkgver=0.7.1.g023225e pkgrel=1 pkgdesc='Simple virtual terminal emulator for X' url='http://git.suckless.org/st/' @@ -13,6 +13,7 @@ license=('MIT') options=('zipman') depends=('libxft') makedepends=('ncurses' 'libxext' 'git') +epoch=1 # include config.h and any patches you want to have applied here source=('git://git.suckless.org/st') sha1sums=('SKIP') @@ -22,7 +23,7 @@ conflicts=("${_pkgname}") pkgver() { cd "${_pkgname}" - git log -1 --format='%cd.%h' --date=short | tr -d - + git describe --tags |sed 's/-/./g' } prepare() { -- cgit v1.2.3