aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormar77i <mar77i@mar77i.ch>2016-09-03 14:36:01 +0200
committermar77i <mar77i@mar77i.ch>2016-09-03 14:36:01 +0200
commit549b41de1c97e612195bb4c06d050009f3e09825 (patch)
treec5ef2c3be4a5cfbeda4ab7a274b3bb3663f215c8
parent6ee8125844b2f3ca07a84cb23b0f9d235a65e4c3 (diff)
downloadAUR-549b41de1c97e612195bb4c06d050009f3e09825.tar.gz
AUR-549b41de1c97e612195bb4c06d050009f3e09825.tar.zst
AUR-549b41de1c97e612195bb4c06d050009f3e09825.zip
use tags for generating pkgver, like in dwm-git
-rw-r--r--PKGBUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b9a9f9a..1bd003d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
1# Maintainer: mar77i <mysatyre at gmail dot com> 1# Maintainer: mar77i <mar77i at mar77i dot ch>
2# Past Maintainer: Gaetan Bisson <bisson@archlinux.org> 2# Past Maintainer: Gaetan Bisson <bisson@archlinux.org>
3# Contributor: Scytrin dai Kinthra <scytrin@gmail.com> 3# Contributor: Scytrin dai Kinthra <scytrin@gmail.com>
4 4
5pkgname=st-git 5pkgname=st-git
6_pkgname=st 6_pkgname=st
7pkgver=20160309.3996461 7pkgver=0.7.1.g023225e
8pkgrel=1 8pkgrel=1
9pkgdesc='Simple virtual terminal emulator for X' 9pkgdesc='Simple virtual terminal emulator for X'
10url='http://git.suckless.org/st/' 10url='http://git.suckless.org/st/'
@@ -13,6 +13,7 @@ license=('MIT')
13options=('zipman') 13options=('zipman')
14depends=('libxft') 14depends=('libxft')
15makedepends=('ncurses' 'libxext' 'git') 15makedepends=('ncurses' 'libxext' 'git')
16epoch=1
16# include config.h and any patches you want to have applied here 17# include config.h and any patches you want to have applied here
17source=('git://git.suckless.org/st') 18source=('git://git.suckless.org/st')
18sha1sums=('SKIP') 19sha1sums=('SKIP')
@@ -22,7 +23,7 @@ conflicts=("${_pkgname}")
22 23
23pkgver() { 24pkgver() {
24 cd "${_pkgname}" 25 cd "${_pkgname}"
25 git log -1 --format='%cd.%h' --date=short | tr -d - 26 git describe --tags |sed 's/-/./g'
26} 27}
27 28
28prepare() { 29prepare() {