aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-getopt-long/APKBUILD
blob: abc14abc67eefae634724fc79a67ff2557f2904c (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: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-getopt-long
_pkgreal=Getopt-Long
pkgver=2.48
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="7dc6a38df7162a5add8f174a94acc0c3  Getopt-Long-2.48.tar.gz"
sha256sums="d5852a2f526535d14af7c5428098d74bae26c71f7b0aa72e5736db174b9d755b  Getopt-Long-2.48.tar.gz"
sha512sums="29e15d0e931225886cfcc31efc3b37501aa9453d5f5655ff116286faa7015712770d4da22b4bcecb775cdd8af1ceb535c0f03aeab55244de1acc51886ae835c8  Getopt-Long-2.48.tar.gz"