# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: John D Jones III <j[nospace]n[nospace]b[nospace]e[nospace]k[nospace]1972 -_AT_- the domain name google offers a mail service at ending in dot com>
# Generator  : CPANPLUS::Dist::Arch 1.28

pkgname=perl-net-libidn2
pkgver=1.02
pkgrel=5
pkgdesc="Perl bindings for GNU Libidn2"
arch=('x86_64')
url='https://search.cpan.org/dist/Net-LibIDN2'
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('libidn2' 'perl')
makedepends=('perl-module-build')
source=("https://search.cpan.org/CPAN/authors/id/T/TH/THOR/Net-LibIDN2-$pkgver.tar.gz")
sha512sums=('c421b6a675e08993d0e9ae4cb11a666d3ecd9cd11c112399ce2d2ec49c3b21e462fe0e6043d3dc821bc31f4880b3b0415ce16f946cc537101a633b8d19234855')

build() {
  cd Net-LibIDN2-$pkgver
  perl Build.PL installdirs=vendor
  perl Build
}

check() {
  cd Net-LibIDN2-$pkgver
  perl Build test
}

package() {
  cd Net-LibIDN2-$pkgver
  perl Build install destdir="$pkgdir"
}

# vim:set ts=2 sw=2 et:
