aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-sub-identify/APKBUILD
blob: d65492dced392d525741ac66bd15b49a244a525a (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.08
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="07fbd43c37a26f3ac1e12e854a5146dd  Sub-Identify-0.08.tar.gz"
sha256sums="ace7ef4f603f2ad95b496a4b1d4d5977720e776b364c5cf6ca1a6c6f6916335e  Sub-Identify-0.08.tar.gz"
sha512sums="5fe7855b45c8803e6a0fdbf0e28541207f76b1afe9f982b683b8c15f6579d5daff4f0eda91d2f3425c8ec38e8ca26764f4d8bc0927ac32c3004454465f8e5ba3  Sub-Identify-0.08.tar.gz"