aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-sub-identify/APKBUILD
blob: 53ab49ffe15141dd98e968a342779e71e919d199 (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 <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-sub-identify
_pkgreal=Sub-Identify
pkgver=0.12
pkgrel=1
pkgdesc="Retrieve names of code references"
url="http://search.cpan.org/dist/Sub-Identify/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/$_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="e9223e830bfdfbd6f40675e3bec76688  Sub-Identify-0.12.tar.gz"
sha256sums="83bb785a66113b4a966db0a4186fd1dd07987acdacb4502b1e1558f817dde825  Sub-Identify-0.12.tar.gz"
sha512sums="47b89866ecdd2b7caaba4a440bd695ab42d92c56721bc43a7fc114c2870a5e536ed17e05eec4ac62525c9fad26e24c299aadc852fd15d58bd626dfdb6478e40f  Sub-Identify-0.12.tar.gz"