aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-xml-rss/APKBUILD
blob: 6454605957f74b574588df9a895af6cf3e0f3448 (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
37
38
39
40
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-xml-rss
_pkgreal=XML-RSS
pkgver=1.61
pkgrel=1
pkgdesc="creates and updates RSS files"
url="https://metacpan.org/release/XML-RSS"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-xml-parser perl-html-parser perl-datetime-format-mail
	perl-datetime-format-w3cdtf perl-datetime"
cpanmakedepends="perl-test-manifest"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-RSS-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 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="320b1a26d88f0db4861e1eb701a34110362293b24861e804a5be7c77be58c7f41730b67462c391edf50cd27444e2b86a8e4d8013dacd64578cb30cfd48f79c8b  XML-RSS-1.61.tar.gz"