summaryrefslogtreecommitdiffstats
path: root/main/perl-module-implementation/APKBUILD
blob: 0a3f0ab30522bab867ad197ee59ffc89c8238770 (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: 
# Maintainer: 
pkgname=perl-module-implementation
_pkgreal=Module-Implementation
pkgver=0.07
pkgrel=0
pkgdesc="Loads one of several alternate underlying implementations for a module"
url="http://search.cpan.org/dist/Module-Implementation/"
arch="noarch"
license="Artistic-2"
cpandepends="perl-try-tiny perl-module-runtime"
cpanmakedepends="  perl-test-fatal perl-test-requires "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

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

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

md5sums="55483fce4266747e823a1004499bd70c  Module-Implementation-0.07.tar.gz"
sha256sums="7349837153939d7f5777b28f49e2940a0aa003e75f587e1674da5bd5101d2997  Module-Implementation-0.07.tar.gz"
sha512sums="f2ea0aba3a21fd5a338899f74d0d59e0590983787a85083e2bf68bb0c27ca82362090d4bfca685a36895e8832a4784c86bb999b13b90c9a0356f326bf8bb6f99  Module-Implementation-0.07.tar.gz"