aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-sub-name/APKBUILD
blob: b0d5c768839c399a1d8544574fb20d6f817a0fdd (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-name
_pkgreal=Sub-Name
pkgver=0.15
pkgrel=0
pkgdesc="(re)name a sub"
url="http://search.cpan.org/dist/Sub-Name/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="  perl-devel-checkbin "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_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="9711808eae4e8b792ed9316daa2d80d4  Sub-Name-0.15.tar.gz"
sha256sums="dabc9a4abcbe067d120ce005b4203b8a44291cbda013900152ba19a1e7c1c8c8  Sub-Name-0.15.tar.gz"
sha512sums="6b8f0ce56e4706148cd71d5e937986714d69162c9ce16b177866832ef1c0245f5d11f5bd555e325098ab54fdb1d46a32e37d0213d2dadef03cc53f2d4da59cc6  Sub-Name-0.15.tar.gz"