aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-class-mix/APKBUILD
blob: 72af68f911e8708e15a49abe82750bf6d4e79599 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-class-mix
_pkgreal=Class-Mix
pkgver=0.005
pkgrel=0
pkgdesc="dynamic class mixing"
url="http://search.cpan.org/dist/Class-Mix/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-params-classify"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

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

md5sums="7d6c4e70dea13678d845898a4a1565c0  Class-Mix-0.005.tar.gz"
sha256sums="054d0db62df90f22601f2a18fc84e9ca026d81601f5940b2fcc543e39d69b36b  Class-Mix-0.005.tar.gz"
sha512sums="9486a8ec4f6b1a5483610cdac110eed219bb849e8895a350309167206f8caef4209abbbc340a467f4c3b2ca3afc6e2b49b66601110517b66684689f4d88d20c9  Class-Mix-0.005.tar.gz"