aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-devel-symdump/APKBUILD
blob: 2fb70a90a70f767d75faf6865ed1047575edc98e (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-devel-symdump
_pkgreal=Devel-Symdump
pkgver=2.15
pkgrel=0
pkgdesc="dump symbol names or the symbol table"
url="http://search.cpan.org/dist/Devel-Symdump/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AN/ANDK/$_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="6d34787ab647505b8d353a1d1713f907  Devel-Symdump-2.15.tar.gz"
sha256sums="76c2a90d31318204ecf1977f0217ce57b142e6681fe2b99fb8789efc5dd86f41  Devel-Symdump-2.15.tar.gz"
sha512sums="eba7178da3b8c9b8b2f4c61e572e4aef2e181a9b0be7a58f0790534511ccef51b7def381bcf7c37cd4a127de1cf57f1536284b3cb65f8a99920460a172f2e446  Devel-Symdump-2.15.tar.gz"