upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / perl-net-idn-encode / repos / community-any / PKGBUILD
blobf38f651b633badc4a974490e9ceb4ae317965c49
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
4 pkgname=perl-net-idn-encode
5 _cpanname=Net-IDN-Encode
6 pkgver=2.500
7 pkgrel=5
8 pkgdesc="Net::IDN::Encode provides an easy-to-use interface for encoding and decoding Internationalized Domain Names (IDNs)."
9 arch=('any')
10 url="https://search.cpan.org/~cfaerber/${_cpanname}/"
11 license=('GPL')
12 depends=('perl')
13 checkdepends=('perl-test-nowarnings' 'perl-test-pod' 'perl-test-pod-coverage')
14 options=('!emptydirs')
15 source=(https://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/${_cpanname}-${pkgver}.tar.gz)
16 sha512sums=('3537309ea391e4f762eb8ce43929bfa024d63ee59c94f8d2ea16179aa6ad66ecef29188551749593302f14dc5b3182dbce18ebaf5176a34b40d6fa5b7e5763fb')
18 build() {
19   cd "$srcdir/${_cpanname}-${pkgver}"
20   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
21   make
24 check() {
25   cd "$srcdir/${_cpanname}-${pkgver}"
26   make test
29 package() {
30   cd "$srcdir/${_cpanname}-${pkgver}"
31   make install DESTDIR="$pkgdir/"
34 # vim:set ts=2 sw=2 sts=2 et: