From 1308bf0036d9f8b2a0b18468cdd4f85bc2b5afb5 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 20 Oct 2013 21:03:32 +0200 Subject: urxvt-tabbedex-git: Better pkgver(), fixed style and quoting --- .SRCINFO | 2 +- PKGBUILD | 12 ++++++------ 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 # Contributor: M Rawash -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: -- cgit v1.2.3-70-g09d2