aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-module-pluggable/APKBUILD
blob: dad6d931d97c6f43cb43e894f6f37e816a0cef20 (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: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-module-pluggable
_pkgreal=Module-Pluggable
pkgver=5.1
pkgrel=0
pkgdesc="automatically give your module the ability to have plugins"
url="http://search.cpan.org/dist/Module-Pluggable/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SI/SIMONW/$_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="1b71ed7a67ad8c048d1499540bc892ba  Module-Pluggable-5.1.tar.gz"
sha256sums="e2dc354043bb16f1f3df8c4bb26070b26e594819f218cf8b8ac19e79c720916f  Module-Pluggable-5.1.tar.gz"
sha512sums="2ed43516ff18f50ac494f6365296f42e7dfc6704a2b01d3661ca00c295ee378184757cb03381400fba8bc5f2df06241f2ee9ecf930af4d498b042c68069a670b  Module-Pluggable-5.1.tar.gz"