blob: 98b9bbdc6d762b77a5dcb2090af948f161b544e5 (
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: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-class-methodmaker
pkgver=2.24
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="6fac1ed1fea8a4e42d36a4d07c8bfa09 Class-MethodMaker-2.24.tar.gz"
sha256sums="5eef58ccb27ebd01bcde5b14bcc553b5347a0699e5c3e921c7780c3526890328 Class-MethodMaker-2.24.tar.gz"
sha512sums="d78f89df41d5c566dee74d30ff1b71488e9510639e795dd2f21e95e0516b039d15dd6743342cb28841e0fc698f64b3b3f349b5da788220598dff6ad95225ae0c Class-MethodMaker-2.24.tar.gz"
|