Skip to content

Instantly share code, notes, and snippets.

@Freso

Freso/- Secret

Created Sep 12, 2017
Embed
What would you like to do?
From fd4d475427d603be906bd8dfd8961d1025e78ec2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Frederik=20=E2=80=9CFreso=E2=80=9D=20S=2E=20Olesen?=
<freso.dk@gmail.com>
Date: Tue, 12 Sep 2017 12:58:01 +0200
Subject: [PATCH] Apply patch from upstream bug #120438
https://rt.cpan.org/Public/Bug/Display.html?id=120438
---
.SRCINFO | 5 ++++-
PKGBUILD | 16 ++++++++++++----
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index 53f1166..22cbb6c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = perl-test-yaml-valid
pkgdesc = Test for valid YAML
pkgver = 0.04
- pkgrel = 1
+ pkgrel = 2
url = http://search.cpan.org/dist/Test-YAML-Valid
arch = any
license = PerlArtistic
@@ -12,8 +12,11 @@ pkgbase = perl-test-yaml-valid
depends = perl-yaml-tiny
options = !emptydirs
source = http://search.cpan.org/CPAN/authors/id/J/JR/JROCKWAY/Test-YAML-Valid-0.04.tar.gz
+ source = https://rt.cpan.org/Ticket/Attachment/1727520/928823/Test-YAML-Valid-0.04-Fix-building-on-Perl-without-.-in-INC.patch
md5sums = 553374b7e9f906e005b979e1d6853708
+ md5sums = c22a2be087b7e9942e2c82c40c9a8372
sha512sums = 5e1ab689759fed4e907b23bb004989812b9f4602de187af8bb9d911aa2f0c2195c036a36348bba42e91a7d61e8c5000e5d396874aa32e9f9115ace24c9af8816
+ sha512sums = c4211b9aab9c6d19901ebb169823cee20014d97ae730227c0d2a1096a93e1086dbc4148ad5f64ef511c9766a092de6d4a4b598f49632b166383b4a5b1b69174f
pkgname = perl-test-yaml-valid
diff --git a/PKGBUILD b/PKGBUILD
index 986dc6e..1319803 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname='perl-test-yaml-valid'
pkgver='0.04'
-pkgrel='1'
+pkgrel='2'
pkgdesc="Test for valid YAML"
arch=('any')
license=('PerlArtistic' 'GPL')
@@ -11,11 +11,19 @@ options=('!emptydirs')
depends=('perl-yaml>=0.60' 'perl-yaml-libyaml' 'perl-yaml-syck>=0.60' 'perl-yaml-tiny')
makedepends=()
url='http://search.cpan.org/dist/Test-YAML-Valid'
-source=('http://search.cpan.org/CPAN/authors/id/J/JR/JROCKWAY/Test-YAML-Valid-0.04.tar.gz')
-md5sums=('553374b7e9f906e005b979e1d6853708')
-sha512sums=('5e1ab689759fed4e907b23bb004989812b9f4602de187af8bb9d911aa2f0c2195c036a36348bba42e91a7d61e8c5000e5d396874aa32e9f9115ace24c9af8816')
+source=('http://search.cpan.org/CPAN/authors/id/J/JR/JROCKWAY/Test-YAML-Valid-0.04.tar.gz'
+ 'https://rt.cpan.org/Ticket/Attachment/1727520/928823/Test-YAML-Valid-0.04-Fix-building-on-Perl-without-.-in-INC.patch')
+md5sums=('553374b7e9f906e005b979e1d6853708'
+ 'c22a2be087b7e9942e2c82c40c9a8372')
+sha512sums=('5e1ab689759fed4e907b23bb004989812b9f4602de187af8bb9d911aa2f0c2195c036a36348bba42e91a7d61e8c5000e5d396874aa32e9f9115ace24c9af8816'
+ 'c4211b9aab9c6d19901ebb169823cee20014d97ae730227c0d2a1096a93e1086dbc4148ad5f64ef511c9766a092de6d4a4b598f49632b166383b4a5b1b69174f')
_distdir="Test-YAML-Valid-0.04"
+prepare() {
+ cd "$srcdir/$_distdir"
+ patch -p1 --input="$srcdir/Test-YAML-Valid-0.04-Fix-building-on-Perl-without-.-in-INC.patch"
+}
+
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
--
2.14.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.