summaryrefslogblamecommitdiff
path: root/user/perl-syntax-keyword-try/APKBUILD
blob: 8385509ea80378389e0772415eed29c08fd8bcb0 (plain) (tree)
1
2
3
4
5
6
7
8






                                                           
           

























                                                                                        
                                                                                                                                                                             
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-syntax-keyword-try
_pkgreal=Syntax-Keyword-Try
_author=PEVANS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.28
pkgrel=0
pkgdesc="An implementation of try/catch/finally for Perl"
url="https://metacpan.org/pod/Syntax::Keyword::Try"
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="c297480200cc22d0b0e3adc542ef94f82e120f4ab25612f184880f934825297ccbb2c9a4c453393b8f4ea93621b0dbb84ff17db42ee2333709158b007cfe674f  Syntax-Keyword-Try-0.28.tar.gz"