blob: ec817214c520517eb3759cf4d4eac8d9980a7c97 (
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: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-b-hooks-endofscope
_pkgreal=B-Hooks-EndOfScope
pkgver=0.14
pkgrel=0
pkgdesc="Execute code after a scope finished compilation"
url="http://search.cpan.org/dist/B-Hooks-EndOfScope/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-sub-exporter-progressive perl-module-runtime perl-module-implementation perl-variable-magic"
cpanmakedepends=" "
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_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="9380361535fdade817fa5544df579f31 B-Hooks-EndOfScope-0.14.tar.gz"
sha256sums="dfec3f1282ce51566005bc5bc8793325d820ab25902d5ef765f50b678076552f B-Hooks-EndOfScope-0.14.tar.gz"
sha512sums="0e7e4f0f296914ac2b2eeb5d7725a7644c27f11e83cdf04f3f33762233ed68b79d731af1b8d1f5e3acb2add5cffcbdf06dd6ed623c20b739d5114f2549e49d0d B-Hooks-EndOfScope-0.14.tar.gz"
|