mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
44 lines
1.2 KiB
Text
44 lines
1.2 KiB
Text
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
|
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
|
pkgname=perl-path-dispatcher
|
|
pkgver=1.08
|
|
pkgrel=0
|
|
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Path-Dispatcher
|
|
pkgdesc="Flexible and extensible dispatch"
|
|
url="https://metacpan.org/release/Path-Dispatcher/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl perl-moo perl-moox-typetiny perl-try-tiny perl-type-tiny"
|
|
makedepends="perl-module-build-tiny perl-module-build"
|
|
checkdepends="perl-test-fatal"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Path-Dispatcher-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
perl Build.PL \
|
|
--installdirs=vendor \
|
|
--create_packlist=0
|
|
./Build
|
|
}
|
|
|
|
check() {
|
|
./Build test
|
|
}
|
|
|
|
package() {
|
|
./Build install --destdir="$pkgdir"
|
|
}
|
|
|
|
doc() {
|
|
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
|
|
amove "${file#"$pkgdir"}"
|
|
done
|
|
default_doc
|
|
}
|
|
|
|
sha512sums="
|
|
3cda047a70dafc0ce54dad949b567d872b9c911c670a66d5f022cf21706ced2b6ff40b615458c2b7b06693141f9504beceb93c7c6b532eba53f32290b93b27c2 Path-Dispatcher-1.08.tar.gz
|
|
"
|