aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-class-methodmaker/APKBUILD
blob: f0afcfe965f8f87218f95cb9462cb1161f64b2f7 (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
35
36
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-class-methodmaker
pkgver=2.24
pkgrel=5
pkgdesc="Create generic class methods"
url="https://metacpan.org/release/Class-MethodMaker"
arch="all"
license="GPL"
depends=""
depends_dev="perl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-$pkgver.tar.gz"

builddir="$srcdir/Class-MethodMaker-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="d78f89df41d5c566dee74d30ff1b71488e9510639e795dd2f21e95e0516b039d15dd6743342cb28841e0fc698f64b3b3f349b5da788220598dff6ad95225ae0c  Class-MethodMaker-2.24.tar.gz"