aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-getopt-long/APKBUILD
blob: ea28618f980cb6b1099937e5ab19cfcdbfa32a69 (plain) (blame)
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: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-getopt-long
_pkgreal=Getopt-Long
pkgver=2.49.1
pkgrel=0
pkgdesc="Module to handle parsing command line options"
url="http://search.cpan.org/dist/Getopt-Long/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JV/JV/$_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="bb7c92be20117be5d5043b07b6fd20a1  Getopt-Long-2.49.1.tar.gz"
sha256sums="98fad4235509aa24608d9ef895b5c60fe2acd2bca70ebdf1acaf6824e17a882f  Getopt-Long-2.49.1.tar.gz"
sha512sums="3a28eabdc8847e10d82b20f12f59f3797d73ea15245aeaacd678f0b1111ddc024e91c9ca0cf3897116533fb35dc4592e029444dee931844ddbadf90cda375200  Getopt-Long-2.49.1.tar.gz"