summaryrefslogtreecommitdiff
path: root/user/perl-role-tiny/APKBUILD
blob: 03fa86a449999064dfc574b99582d38225fb4ac3 (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
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-role-tiny
pkgver=2.001001
pkgrel=0
pkgdesc="A minimalist role composition tool"
url="https://metacpan.org/pod/Role::Tiny"
arch="noarch"
license="Artistic-1.0-Perl AND GPL-2.0"
depends="perl"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Role-Tiny-$pkgver.tar.gz"
builddir="$srcdir/Role-Tiny-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="ea793dc17e534bd3fb5573d4445728b18dd61a77f3db25d890bf50e6d83baa245a6798276ae8bd5060478bf45a4782a2fa6b5c6a8029aed974293891bc5f8235  Role-Tiny-2.001001.tar.gz"