aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-devel-leak/APKBUILD
blob: 93972fe6d2d799d4906f1bc6a33d0ebf3658ea17 (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-devel-leak
_pkgreal=Devel-Leak
pkgver=0.03
pkgrel=4
pkgdesc="Utility for looking for perl objects that are not reclaimed"
url="http://search.cpan.org/dist/Devel-Leak/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NI/NI-S/$_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="9ee2cf88bd1dbc6091e38ef4597b54bb  Devel-Leak-0.03.tar.gz"
sha256sums="6f42c34f11e2b4e3ea2e0e6b9416a88a685add447910caf4d91dd2c178177252  Devel-Leak-0.03.tar.gz"
sha512sums="177f64b87fa6ab08b93f7c5bfcbaf4421e8431bf795976a0a7efa0120828984fed29a2bc12918e5bea9ea3edccf6316ba8daf704f349aece84b45bdd11f57707  Devel-Leak-0.03.tar.gz"