summaryrefslogtreecommitdiff
path: root/user/perl-xs-parse-sublike/APKBUILD
blob: a2c66f8f53c27c60ca38abf1e89bf412c8a46d6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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.21
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 perl-test2-suite"
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="78c94fbfafbd763ea6ee03638710734889d75233abd48537b53bb3c5ceaeda261bfce4a43e3ad91854aa942c382b320fb2fef186ec3a5bb9c66767681033b410  XS-Parse-Sublike-0.21.tar.gz"