summaryrefslogblamecommitdiff
path: root/system/perl-net-libidn/APKBUILD
blob: 147252aa304a7996b36f58b9d437af8171b5c9ae (plain) (tree)
1
2
3
4
5
6
7
8






                                                                   
                              



                                           
                          
                                                                                    




















                                                                                                                                                                     
# 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="https://www.net-dns.org/"
arch="all"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl"
makedepends="libidn-dev perl-dev"
subpackages="$pkgname-doc"
source="https://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"