# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Socket6
pkgname="perl-${_realname}"
pkgver=0.29
pkgrel=5
pkgdesc="A getaddrinfo/getnameinfo support module"
arch=('i686' 'x86_64')
url='https://metacpan.org/release/Socket6'
license=('PerlArtistic' 'GPL')
depends=('perl')
makedepends=('perl-devel')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/U/UM/UMEMOTO/Socket6-$pkgver.tar.gz)
sha256sums=('468915fa3a04dcf6574fc957eff495915e24569434970c91ee8e4e1459fc9114')

build() {
  cd Socket6-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Socket6-$pkgver
  make test
}

package() {
  cd Socket6-$pkgver
  make DESTDIR="$pkgdir" install
}
