perl-IO-Socket-IP: New package

This commit is contained in:
Alexey Pavlov
2020-05-30 11:48:06 +03:00
parent e18dc6d465
commit f5ffce34ff

View File

@@ -0,0 +1,33 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=IO-Socket-IP
pkgname="perl-${_realname}"
pkgver=0.39
pkgrel=1
pkgdesc="Family-neutral IP socket supporting both IPv4 and IPv6"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
makedepends=()
url='https://metacpan.org/release/IO-Socket-IP'
groups=('perl-modules')
source=("https://www.cpan.org/authors/id/P/PE/PEVANS/${_realname}-${pkgver}.tar.gz")
sha256sums=('11950da7636cb786efd3bfb5891da4c820975276bce43175214391e5c32b7b96')
build() {
cd "${_realname}-${pkgver}"
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "${_realname}-${pkgver}"
make test
}
package() {
cd "${_realname}-${pkgver}"
make DESTDIR="$pkgdir" install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}