aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-03-21 17:08:54 +0000
committerRasmus Thomsen <oss@cogitri.dev>2020-03-21 20:23:41 +0000
commit053e1499ddabf847f796775d2e1adf4a2b86aec5 (patch)
treef9abfb9188dd42dc9c1dd7d19ba5c79b7455e279
parent2b5516c2f69e9643a92399abe530cd6ae86d22c7 (diff)
downloadaports-053e1499ddabf847f796775d2e1adf4a2b86aec5.tar.bz2
aports-053e1499ddabf847f796775d2e1adf4a2b86aec5.tar.xz
community/perl-alien-libxml2: new aport
-rw-r--r--community/perl-alien-libxml2/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/perl-alien-libxml2/APKBUILD b/community/perl-alien-libxml2/APKBUILD
new file mode 100644
index 0000000000..0fb16610ae
--- /dev/null
+++ b/community/perl-alien-libxml2/APKBUILD
@@ -0,0 +1,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"