aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-class-methodmaker/APKBUILD
blob: b769268bb2411c1e67f96a674be097e3e99d4c60 (plain)
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
37
38
39
40
41
42
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=perl-class-methodmaker
pkgver=2.21
pkgrel=1
pkgdesc="Create generic class methods"
url="http://search.cpan.org/dist/Class-MethodMaker"
arch="all"
license="GPL"
depends=""
depends_dev="perl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-$pkgver.tar.gz"

_builddir="$srcdir"/Class-MethodMaker-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

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

md5sums="d53a587fb84d5c5209e55ec0d4fab21d  Class-MethodMaker-2.21.tar.gz"
sha256sums="fc7844160317187b2acdf4fff1b6c35eb94f752cf5fb65ddcd154ce1250b8a3d  Class-MethodMaker-2.21.tar.gz"
sha512sums="f39b95e724b794b58b9ae41bf1c76f40d2c71180f93d0b50148d0c204215ee0e12a858d81a53b9e590b9890be4af0215362cb36944ed535fcb34c7078c91c8ef  Class-MethodMaker-2.21.tar.gz"