aboutsummaryrefslogtreecommitdiffstats
path: root/community/xmltv/APKBUILD
blob: fa3a1baa5369b7edae5d0feaa1ca9cd5291e6006 (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=xmltv
pkgver=0.6.3
pkgrel=0
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-term-progressbar perl-xml-treepp"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/XMLTV/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/xmltv-$pkgver

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

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

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

sha512sums="ec3736a91b3704c96672d85b821ba160802ebf76d96219970d5eb8b44742d1474866b06171bfef79d6a14fde0ba056fc206ec8b2e27b3e03dedf7c6fa1fd54f1  xmltv-0.6.3.tar.gz"