aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-xml-rss/APKBUILD
blob: 7ceff986012adf897021d2d3c4f85cffd6b3b85e (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-xml-rss
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=XML-RSS
pkgver=1.62
pkgrel=0
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"
depends="perl perl-datetime-format-w3cdtf perl-xml-parser perl-html-parser perl-datetime-format-mail"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-RSS-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="fc075e7b7ccd168c3a915170adcf63cc84cb0e465f9c88b52800c747f8363719b60e1606ce77bc910915d9b0fd1838ae4e93f1699389e08a51836f87b03bbfd5  XML-RSS-1.62.tar.gz"