aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-alien-libxml2/APKBUILD
blob: 0fb16610ae07e71843ee9b75389fdb7dd8438e29 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-alien-libxml2
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Alien-Libxml2
pkgver=0.15
pkgrel=0
pkgdesc="Install the C libxml2 library on your system"
url="https://metacpan.org/release/Alien-Libxml2/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-alien-build"
makedepends="perl-dev perl-alien-build libxml2-dev"
checkdepends="perl-test2-suite perl-alien-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="391c350dd3c6f2a729a880fd895fe2dea7d10f17eaaeced731ca4d4cd938296f7ec9cb11a777d8f9602813c7b60f2b647d2bb37b8ea37de34bd06479b8e0617c  Alien-Libxml2-0.15.tar.gz"