aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-alien-libxml2/APKBUILD
blob: 4feeef5778a3a185d69a718f11226bdced8561b1 (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
# 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.19
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 libxml2-dev perl-alien-build perl-alien-build-plugin-download-gitlab"
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="
02e4fab4fa4beacec3a6c932d11a3a8ea6648c084d5cb12a332b0e0e2f06eed595783d7673285bdf5e804a5a09bae1beb94261d6cfb4677decc7f1cfee3a3a76  Alien-Libxml2-0.19.tar.gz
"