summaryrefslogtreecommitdiffstats
path: root/main/perl-devel-symdump/APKBUILD
blob: 6f40ce1fb0bfd10cafc9334a315a83f05ecd71bc (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.12
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="004112b0c820556f6d073f77425a9f3d  Devel-Symdump-2.12.tar.gz"
sha256sums="9949c44f7646d380e71744f6d12291de29b0f468fe96e8e1614feb913054073d  Devel-Symdump-2.12.tar.gz"
sha512sums="a123e41daf386963c0e199702386b07db75cb675574137c0661183add10d95ef568e48a9c2639373b39e6102ce16c4685ff538711f7d76b3a27c1fee4bd80506  Devel-Symdump-2.12.tar.gz"