summaryrefslogtreecommitdiff
path: root/community/xmltv/APKBUILD
blob: fcc7103569430b2842b355386b81a8d599cce0fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Con://github.com/saltstack/salttributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=xmltv
pkgver=0.5.69
pkgrel=1
pkgdesc="Set of utilities to download tv listings and format them in xml"
url="http://xmltv.org/wiki"
arch="noarch"
license="GPL-2.0"
depends="perl-libwww perl-xml-parser perl-xml-twig perl-date-manip perl-xml-writer
	perl-timedate perl-unicode-string perl-term-readkey perl-file-slurp perl-xml-libxml
	perl-lingua-en-numbers-ordinate perl-lingua-preferred perl-compress-raw-zlib perl-io-gzip
	perl-io-compress perl-term-progressbar perl-xml-treepp"
depends_dev=""
makedepends="$depends_dev perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/xmltv/xmltv-$pkgver.tar.bz2
	fix-build.patch"

builddir="$srcdir"/xmltv-$pkgver

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 yes | perl Makefile.PL INSTALLDIRS=vendor
	make
}

#check() {
#	cd "$builddir"
#	make check
#}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="b76991bdcf2803f67c0c24b52d44b62ebfc37f177dbfb31a781fefe420ee5a575b522ed6a6669fa9f0462ac866abd382a1b3fe2cf91d3bfab1758f95facd333c  xmltv-0.5.69.tar.bz2
66e0307a0ad4d1eeccef4a189eb59e4096070cc5165ce8a62206ebe9f43c76a62ac8640c8da3fbf078ddf780dc0ed6fbeeecb43f6550e61bf0a076ff80d8c79e  fix-build.patch"