aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-devel-symdump/APKBUILD
blob: 108c3776f66ca9b694a3bc7f0f0f96b17cc68c65 (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.17
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="83e9533aa5ae90f624d0b590f9aa881c  Devel-Symdump-2.17.tar.gz"
sha256sums="2c50fc7935e6e6200b74fbb9149c8078ee8f92788d2a9c5ab25c9ebace946e62  Devel-Symdump-2.17.tar.gz"
sha512sums="f210b0008378772abd56e953152f0a9dcef6f84009c292e46d738a461d3ecadaf536493835c4f13b51a0db2381127f043fe0e893b97f9cf3eed68eeb4af9dae8  Devel-Symdump-2.17.tar.gz"