summaryrefslogblamecommitdiff
path: root/user/perl-xs-parse-sublike/APKBUILD
blob: 53883465cc81416fd89935f630f753aa0e32990c (plain) (tree)


































                                                                                                                                                                           
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-xs-parse-sublike
_pkgreal=XS-Parse-Sublike
_author=PEVANS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.16
pkgrel=0
pkgdesc="XS functions to aid in parsing sub-like syntax"
url="https://metacpan.org/pod/XS::Parse::Sublike"
arch="all"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-test-fatal"
makedepends="perl-dev perl-extutils-cchecker perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
        perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs="vendor"
        ./Build
}

check() {
        ./Build test
}

package() {
        ./Build install
        find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="66615f291b498e132fc3513a18ae7723ad19e7daa5ff1e455d467235d7078d9d546281af38f5aa55a757b1cc8835fbf1e52944f0e580e7f135a574d625ef6613  XS-Parse-Sublike-0.16.tar.gz"