summaryrefslogtreecommitdiff
path: root/user/perl-syntax-keyword-match/APKBUILD
blob: 24e7a3e915ff9ae50f167fb5521ec9c681e329ec (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-syntax-keyword-match
_pkgreal=Syntax-Keyword-Match
_author=PEVANS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.09
pkgrel=0
pkgdesc="Perl support for match/case keywords"
url="https://metacpan.org/pod/Syntax::Keyword::Match"
arch="all"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl"
checkdepends=""
makedepends="perl-dev perl-module-build perl-xs-parse-keyword"
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="3373d671e4dfa8367b4f81f39e6f3642590d77f6ca2a80e98aff7aa9b5a08c8b392c4feee29f2d9adca292814de5673994dab967f25b4d43cddcbc356728197e  Syntax-Keyword-Match-0.09.tar.gz"