summaryrefslogtreecommitdiffstats
path: root/main/perl-class-load/APKBUILD
blob: 374540b40c3c0b878678f1f78c488d7abe812ff0 (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-class-load
_pkgreal=Class-Load
pkgver=0.22
pkgrel=0
pkgdesc="A working (require "Class::Name") and more"
url="http://search.cpan.org/dist/Class-Load/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-data-optlist perl-module-runtime perl-module-implementation perl-try-tiny perl-namespace-clean perl-package-stash"
cpanmakedepends="  perl-test-fatal perl-test-requires "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_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="ad59087e70b0df76d718c90b53e209d5  Class-Load-0.22.tar.gz"
sha256sums="be52db6081b565002d68a1578ed06c7777b8845e92597be47f1c22e90b123111  Class-Load-0.22.tar.gz"
sha512sums="1f61c9ffd0c7d854c830143109f0b0f98a3f9666971d3f0b2567fd97f7aa703bf0bc9f7342f0489d90ac4765d90695a5783f822458e0eb9a6f5cf4c98b465da4  Class-Load-0.22.tar.gz"