mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 20:46:39 +02:00
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
# Contributor: Wen Heping <wenheping2000@hotmail.com>
|
|
# Maintainer: Wen Heping <wenheping2000@hotmail.com>
|
|
pkgname=perl-catalyst-action-rest
|
|
pkgver=1.21
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Catalyst-Action-REST
|
|
pkgdesc="Automated REST Method Dispatching"
|
|
url="https://metacpan.org/release/Catalyst-Action-REST/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="
|
|
perl perl-catalyst-runtime perl-class-inspector perl-json-maybexs perl-mro-compat
|
|
perl-module-pluggable perl-moose perl-params-validate perl-uri-find perl-namespace-autoclean
|
|
"
|
|
checkdepends="perl-libwww perl-test-requires"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/J/JJ/JJNAPIORK/Catalyst-Action-REST-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
|
INSTALLDIRS=vendor \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
0ff701d24fe4c79e76c6ca6d3ce2520f696fe3b7c31a1e730f643c43d2d593bda4d0ca302d7b3d3714084c1f06e2b664373ec1f33d64fc79d7e1d1a7b99795f0 Catalyst-Action-REST-1.21.tar.gz
|
|
"
|