diff options
author | sl1pkn07 | 2015-07-18 23:39:16 +0200 |
---|---|---|
committer | sl1pkn07 | 2015-07-18 23:39:16 +0200 |
commit | 47cc3f08ad362c8104260bdfca2179363f496ac2 (patch) | |
tree | 6c015033a072b8e5f1b6806f1bc2331f071e58a5 | |
parent | bbd2c6523d89d553e3500a344883e1a65e239e12 (diff) | |
download | aur-47cc3f08ad362c8104260bdfca2179363f496ac2.tar.gz |
update pkgver()
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | ktimer-git.install | 8 |
3 files changed, 9 insertions, 8 deletions
@@ -1,6 +1,6 @@ pkgbase = ktimer-git pkgdesc = A little tool to execute programs after some time. (GIT version) - pkgver = r264.a3d42f7 + pkgver = 0.10.r264.a3d42f7 pkgrel = 1 url = https://www.kde.org/applications/utilities/ktimer install = ktimer-git.install @@ -1,7 +1,7 @@ # Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com> pkgname=ktimer-git -pkgver=r264.a3d42f7 +pkgver=0.10.r264.a3d42f7 pkgrel=1 pkgdesc="A little tool to execute programs after some time. (GIT version)" url='https://www.kde.org/applications/utilities/ktimer' @@ -11,13 +11,14 @@ depends=('kio' 'hicolor-icon-theme') makedepends=('extra-cmake-modules' 'kdoctools' 'git' 'python') conflicts=('kdeutils-ktimer' 'ktimer') provides=('ktimer') -source=("git://anongit.kde.org/ktimer.git") +source=('git://anongit.kde.org/ktimer.git') sha1sums=('SKIP') install=ktimer-git.install pkgver() { cd ktimer - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + _ver="$(cat main.cpp | grep -m1 'version\[\]' | grep -o "[[:digit:]]*" | paste -sd'.')" + echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } prepare() { diff --git a/ktimer-git.install b/ktimer-git.install index ba9440318d98..987eb70a1093 100644 --- a/ktimer-git.install +++ b/ktimer-git.install @@ -1,12 +1,12 @@ post_install() { - xdg-icon-resource forceupdate --theme hicolor &> /dev/null - update-desktop-database -q + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q } post_upgrade() { - post_install + post_install } post_remove() { - post_install + post_install }
\ No newline at end of file |