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 --- PKGBUILD | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'PKGBUILD') 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