summaryrefslogblamecommitdiff
path: root/user/perl-syntax-keyword-try/APKBUILD
blob: b85d3d7f4f0b707dc0dee2531752cef5abb19942 (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.29
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="perl-test2-suite"
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="269ea66916c39852262bc60b1661e90adf55489f1369a745a3c3ba24dd4335203a46d8bf8ddd39dcdefc4ae3314ce06b1fa7956d0a4bd23bba6fb809adaa1814  Syntax-Keyword-Try-0.29.tar.gz"