blob: 11391ead0b2645e2333c67b456fb4fae59feb6d2 (
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.18
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-$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="99435d78e0a1754b102fe39597c6c3df Class-MethodMaker-2.18.tar.gz"
sha256sums="223b7a79025e9bff984d755f9744182505e110680b13eedbac2831d45ddbeeba Class-MethodMaker-2.18.tar.gz"
sha512sums="ba121a14b42766379eed3999d7db01e84f17755b387a5c1e48f19fd5aa1fd55f5ff718ffefbab7a502fead02b3654918c9e17b3ca9eb80cbff426878a66b989e Class-MethodMaker-2.18.tar.gz"
|