summaryrefslogtreecommitdiffstats
path: root/abs/core/xmltv/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/xmltv/PKGBUILD')
-rw-r--r--abs/core/xmltv/PKGBUILD18
1 files changed, 16 insertions, 2 deletions
diff --git a/abs/core/xmltv/PKGBUILD b/abs/core/xmltv/PKGBUILD
index 144d2ab..56b876c 100644
--- a/abs/core/xmltv/PKGBUILD
+++ b/abs/core/xmltv/PKGBUILD
@@ -2,10 +2,11 @@
# Submitter: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>
+# Contributor: "blueowl" <blueowl@centrum.cz>
pkgname=xmltv
pkgver=0.5.69
-pkgrel=1
+pkgrel=2
pkgdesc="Set of utilities to download tv listings and format them in xml"
arch=('any')
url="http://xmltv.org/wiki/"
@@ -19,7 +20,8 @@ depends=('perl-archive-zip' 'perl-datetime' 'perl-date-manip'
'perl-unicode-string' 'perl-unicode-utf8simple' 'perl-www-mechanize'
'perl-xml-dom' 'perl-xml-libxml' 'perl-xml-libxslt' 'perl-xml-simple'
'perl-xml-twig' 'perl-xml-writer' 'perl-parse-recdescent' 'perl-cgi'
- 'perl-xml-treepp' 'perl-datetime-format-iso8601' 'perl-json')
+ 'perl-xml-treepp' 'perl-datetime-format-iso8601' 'perl-json'
+ 'perl-lwp-protocol-https')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('1b0128f97755e7769177d7930e03ad74')
@@ -47,3 +49,15 @@ package() {
find ${pkgdir} -name perllocal.pod -delete
find ${pkgdir} -name .packlist -delete
}
+
+prepare() {
+ # To build corectly with Perl 5.26
+ # see https://sourceforge.net/p/xmltv/mailman/message/36001436/
+ # and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865045
+ sed "s/use POSIX 'tmpnam';//" -i "$pkgname-$pkgver"/filter/tv_to_latex
+ sed "s/use POSIX 'tmpnam';//" -i "$pkgname-$pkgver"/filter/tv_to_text
+ sed "s/\(lib\/set_share_dir.pl';\)/.\/\1/" -i "$pkgname-$pkgver"/grab/it/tv_grab_it.PL
+ sed "s/\(filter\/Grep.pm';\)/.\/\1/" -i "$pkgname-$pkgver"/filter/tv_grep.PL
+ sed "s/\(lib\/XMLTV.pm.in';\)/.\/\1/" -i "$pkgname-$pkgver"/lib/XMLTV.pm.PL
+ sed "s/\(lib\/Ask\/Term.pm';\)/.\/\1/" -i "$pkgname-$pkgver"/Makefile.PL
+}