summaryrefslogtreecommitdiff
path: root/system/perl-net-libidn/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/perl-net-libidn/APKBUILD')
-rw-r--r--system/perl-net-libidn/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/system/perl-net-libidn/APKBUILD b/system/perl-net-libidn/APKBUILD
new file mode 100644
index 000000000..290e9b600
--- /dev/null
+++ b/system/perl-net-libidn/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-net-libidn
+_realname=Net-LibIDN
+pkgver=0.12
+pkgrel=4
+pkgdesc="Perl bindings for libidn"
+url="http://www.net-dns.org/"
+arch="all"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+depends="perl"
+makedepends="libidn-dev perl-dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/T/TH/THOR/$_realname-$pkgver.tar.gz"
+builddir="$srcdir/$_realname-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ # creates file collision among perl modules
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="2c80d0e3d4635e225e8866a1ef6335e3b8642662101e89fde6529aa07acc1eaf8adbe20fadd1d44898651f9d67a3d00c11ff71a22a2aa3027e81643e700d79ee Net-LibIDN-0.12.tar.gz"