summaryrefslogtreecommitdiff
path: root/user/perl-router-simple/APKBUILD
blob: 5eb0f636093980cf2be7f453278d0088504598d4 (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-router-simple
_pkgreal=Router-Simple
_author=TOKUHIROM
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.17
pkgrel=0
pkgdesc="Simple HTTP router for Perl"
url="https://metacpan.org/release/Router-Simple"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-class-accessor-lite"
makedepends="perl-dev perl-module-build"
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 destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="4fbc4fb375d873d7c06d18da49855b81336744bc712035c6557914e275099d93aee4ab787bb1e7b3b730a109b716b4f572fc538d1d574ff709968a1b3767a963  Router-Simple-0.17.tar.gz"