aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <demizide@gmail.com>2013-06-12 22:51:41 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-08 14:34:46 +0200
commitca866a3451b4be7e7de30d8484cb9cd7baf0d910 (patch)
treef4feb13a512d1fc7fcdabeb9fa45ec9592f82d9b
parentdfa83caa81e3875b245c0dedbe67a7bef46e8aa0 (diff)
downloadpkgbuilds-ca866a3451b4be7e7de30d8484cb9cd7baf0d910.tar.xz
Updated urxvt-tabbdex-git PKGBUILD to use Pacman 4.1 VCS support and apply perl 5.18 patch
The PKGBUILD has been refactored to use the VCS support in pacman 4.1, to not do everything in build() and to apply yardenac's perl 5.18 patch
-rw-r--r--.SRCINFO8
-rw-r--r--0001-make-urxvt-tabbedex-work-with-perl-5.18.patch25
-rw-r--r--PKGBUILD32
3 files changed, 47 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2362efb..db4e4ab 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by makepkg 4.2.1
# Mon Jun 1 13:54:34 UTC 2015
pkgbase = urxvt-tabbedex-git
- pkgdesc = Tabbed plugin for rxvt-unicode with many enhancements, development version
- pkgver = 20120216
+ pkgdesc = Tabbed plugin for rxvt-unicode with many enhancements, git version with perl 5.18 patch.
+ pkgver = 20130612
pkgrel = 1
url = http://github.com/stepb/urxvt-tabbedex
install = urxvt-tabbedex-git.install
@@ -12,6 +12,10 @@ pkgbase = urxvt-tabbedex-git
depends = rxvt-unicode
provides = urxvt-tabbedex
conflicts = urxvt-tabbedex
+ source = git://github.com/stepb/urxvt-tabbedex.git
+ source = 0001-make-urxvt-tabbedex-work-with-perl-5.18.patch
+ md5sums = SKIP
+ md5sums = 92d581a40779da3127c88fdc7d10257f
pkgname = urxvt-tabbedex-git
diff --git a/0001-make-urxvt-tabbedex-work-with-perl-5.18.patch b/0001-make-urxvt-tabbedex-work-with-perl-5.18.patch
new file mode 100644
index 0000000..c7f4720
--- /dev/null
+++ b/0001-make-urxvt-tabbedex-work-with-perl-5.18.patch
@@ -0,0 +1,25 @@
+From b865e22e2553b9172f6029780520fd2aa7aca0ff Mon Sep 17 00:00:00 2001
+From: yardenac <yardenack@gmail.com>
+Date: Sun, 26 May 2013 23:11:06 -0700
+Subject: [PATCH] make urxvt-tabbedex work with perl 5.18
+
+---
+ tabbedex | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tabbedex b/tabbedex
+index ada0e2f..3863715 100755
+--- a/tabbedex
++++ b/tabbedex
+@@ -665,7 +665,7 @@ package urxvt::ext::tabbedex::tab;
+ # simply proxies all interesting calls back to the tabbedex class.
+
+ {
+- for my $hook qw(start destroy user_command key_press property_notify add_lines) {
++ for my $hook (qw(start destroy user_command key_press property_notify add_lines)) {
+ eval qq{
+ sub on_$hook {
+ my \$parent = \$_[0]{term}{parent}
+--
+1.8.3.1
+
diff --git a/PKGBUILD b/PKGBUILD
index 21209c2..d641895 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,9 +2,9 @@
# Contributor: M Rawash <mrawash@gmail.com>
pkgname="urxvt-tabbedex-git"
-pkgver=20120216
+pkgver=20130612
pkgrel=1
-pkgdesc="Tabbed plugin for rxvt-unicode with many enhancements, development version"
+pkgdesc="Tabbed plugin for rxvt-unicode with many enhancements, git version with perl 5.18 patch."
arch=("any")
url='http://github.com/stepb/urxvt-tabbedex'
license=("GPL")
@@ -12,22 +12,22 @@ depends=('rxvt-unicode')
makedepends=('git')
provides=('urxvt-tabbedex')
conflicts=('urxvt-tabbedex')
-install=${pkgname}.install
+install=urxvt-tabbedex-git.install
+source=('git://github.com/stepb/urxvt-tabbedex.git'
+ '0001-make-urxvt-tabbedex-work-with-perl-5.18.patch')
+md5sums=('SKIP'
+ '92d581a40779da3127c88fdc7d10257f')
-_gitroot="git://github.com/stepb/urxvt-tabbedex.git"
-_gitname="urxvt-tabbedex"
-
-build() {
- msg "Connecting to ${_gitroot}..."
+pkgver() {
+ date +%Y%m%d
+}
- if [ -d ${srcdir}/${_gitname} ] ; then
- cd ${srcdir}/${_gitname} && git pull origin master
- else
- git clone $_gitroot
- fi
+prepare() {
+ cd ${srcdir}/urxvt-tabbedex
- msg "GIT checkout done or server timeout"
- msg "Starting Installation..."
+ git apply ../0001-make-urxvt-tabbedex-work-with-perl-5.18.patch
+}
- install -Dm644 ${srcdir}/${_gitname}/tabbedex ${pkgdir}/usr/lib/urxvt/perl/tabbedex
+package() {
+ install -Dm644 ${srcdir}/urxvt-tabbedex/tabbedex ${pkgdir}/usr/lib/urxvt/perl/tabbedex
}