summaryrefslogtreecommitdiffstats
path: root/abs/core/xmltv/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-04-11 19:29:31 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-04-11 19:29:31 (GMT)
commit635e14c7e0f335cc888140170f65c8d3f80021c5 (patch)
tree8916036b21471c941393bcf5c90b818b96499a91 /abs/core/xmltv/PKGBUILD
parentea5e3f9fb5b9e0cdd3853e1b75ec5bfaadf3d016 (diff)
downloadlinhes_pkgbuild-635e14c7e0f335cc888140170f65c8d3f80021c5.zip
linhes_pkgbuild-635e14c7e0f335cc888140170f65c8d3f80021c5.tar.gz
linhes_pkgbuild-635e14c7e0f335cc888140170f65c8d3f80021c5.tar.bz2
xmltv: add new dep. closes #1021
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
+}