aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-net-libidn/APKBUILD
blob: 2974f72926e5a7eb820a76645d633539f0951176 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                      
         


                                      
                                



                                 
                                                                                 














                                                                             
                                                                                                                                                                     
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-libidn
_realname=Net-LibIDN
pkgver=0.12
pkgrel=11
pkgdesc="Perl bindings for GNU Libidn"
url="http://www.net-dns.org/"
arch="all"
license="Artistic-Perl-1.0 GPL+"
depends="perl"
makedepends="libidn-dev perl-dev"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/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 || return 1
	make || return 1
}

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"