aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-libidn/APKBUILD
blob: 35598927bc8e5341bc58d90f55360780cda70d90 (plain) (blame)
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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-libidn
_realname=Net-LibIDN
pkgver=0.12
pkgrel=7
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="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 || 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
}

md5sums="c3e4de2065009d67bcb1df0afb473e12  Net-LibIDN-0.12.tar.gz"
sha256sums="2f8acc9442b3866ec7dc63cd449fc693ae3e930d5d3e5e9430fbb6f393bdbb17  Net-LibIDN-0.12.tar.gz"
sha512sums="2c80d0e3d4635e225e8866a1ef6335e3b8642662101e89fde6529aa07acc1eaf8adbe20fadd1d44898651f9d67a3d00c11ff71a22a2aa3027e81643e700d79ee  Net-LibIDN-0.12.tar.gz"