diff options
author | mar77i <mar77i@mar77i.ch> | 2016-09-03 14:36:01 +0200 |
---|---|---|
committer | mar77i <mar77i@mar77i.ch> | 2016-09-03 14:36:01 +0200 |
commit | 549b41de1c97e612195bb4c06d050009f3e09825 (patch) | |
tree | c5ef2c3be4a5cfbeda4ab7a274b3bb3663f215c8 | |
parent | 6ee8125844b2f3ca07a84cb23b0f9d235a65e4c3 (diff) | |
download | AUR-549b41de1c97e612195bb4c06d050009f3e09825.tar.gz AUR-549b41de1c97e612195bb4c06d050009f3e09825.tar.zst AUR-549b41de1c97e612195bb4c06d050009f3e09825.zip |
use tags for generating pkgver, like in dwm-git
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 | ||
5 | pkgname=st-git | 5 | pkgname=st-git |
6 | _pkgname=st | 6 | _pkgname=st |
7 | pkgver=20160309.3996461 | 7 | pkgver=0.7.1.g023225e |
8 | pkgrel=1 | 8 | pkgrel=1 |
9 | pkgdesc='Simple virtual terminal emulator for X' | 9 | pkgdesc='Simple virtual terminal emulator for X' |
10 | url='http://git.suckless.org/st/' | 10 | url='http://git.suckless.org/st/' |
@@ -13,6 +13,7 @@ license=('MIT') | |||
13 | options=('zipman') | 13 | options=('zipman') |
14 | depends=('libxft') | 14 | depends=('libxft') |
15 | makedepends=('ncurses' 'libxext' 'git') | 15 | makedepends=('ncurses' 'libxext' 'git') |
16 | epoch=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 |
17 | source=('git://git.suckless.org/st') | 18 | source=('git://git.suckless.org/st') |
18 | sha1sums=('SKIP') | 19 | sha1sums=('SKIP') |
@@ -22,7 +23,7 @@ conflicts=("${_pkgname}") | |||
22 | 23 | ||
23 | pkgver() { | 24 | pkgver() { |
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 | ||
28 | prepare() { | 29 | prepare() { |