aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2013-10-20 21:03:32 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-08 14:34:46 +0200
commit1308bf0036d9f8b2a0b18468cdd4f85bc2b5afb5 (patch)
tree258a319fcd0e78134f4dbe5aad686700e0248e52
parent41a38dda7a34defcf9aab5cf0c0db5642683c31b (diff)
downloadpkgbuilds-1308bf0036d9f8b2a0b18468cdd4f85bc2b5afb5.tar.xz
urxvt-tabbedex-git: Better pkgver(), fixed style and quoting
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
2 files changed, 7 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index db4e4ab..8647ef3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@
# Mon Jun 1 13:54:34 UTC 2015
pkgbase = urxvt-tabbedex-git
pkgdesc = Tabbed plugin for rxvt-unicode with many enhancements, git version with perl 5.18 patch.
- pkgver = 20130612
+ pkgver = 0.4.r9.g49c1514
pkgrel = 1
url = http://github.com/stepb/urxvt-tabbedex
install = urxvt-tabbedex-git.install
diff --git a/PKGBUILD b/PKGBUILD
index 20a1967..32fbd74 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Johannes Löthberg <demizide@gmail.com>
# Contributor: M Rawash <mrawash@gmail.com>
-pkgname="urxvt-tabbedex-git"
-pkgver=20130612
+pkgname=urxvt-tabbedex-git
+pkgver=0.4.r9.g49c1514
pkgrel=1
pkgdesc="Tabbed plugin for rxvt-unicode with many enhancements, git version with perl 5.18 patch."
arch=("any")
@@ -19,17 +19,17 @@ md5sums=('SKIP'
'92d581a40779da3127c88fdc7d10257f')
pkgver() {
- date +%Y%m%d
+ cd urxvt-tabbedex
+ printf "%s" "$(git describe --tags --long | sed 's/^tabbedex-//;s/-/-r/' | tr - .)"
}
prepare() {
- cd ${srcdir}/urxvt-tabbedex
-
+ cd urxvt-tabbedex
git apply ../0001-make-urxvt-tabbedex-work-with-perl-5.18.patch
}
package() {
- install -Dm644 ${srcdir}/urxvt-tabbedex/tabbedex ${pkgdir}/usr/lib/urxvt/perl/tabbedex
+ install -Dm644 "$srcdir"/urxvt-tabbedex/tabbedex "$pkgdir"/usr/lib/urxvt/perl/tabbedex
}
# vim: set ts=4 sw=4 noet: