# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-sys-syscall
pkgver=0.25
pkgrel=13
pkgdesc="Perl/CPAN Module Sys::Syscall"
arch=("any")
url="https://search.cpan.org/dist/Sys-Syscall/"
license=("GPL" "PerlArtistic")
source=("https://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ/Sys-Syscall-$pkgver.tar.gz")
depends=("perl")
sha256sums=('1e45f80c03b64faf2511ddd4053a04e7a8bcf653f1b9f67e4841c346002613e5')

build() {
  cd "$srcdir"/Sys-Syscall-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Sys-Syscall-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
