aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-set-intspan/APKBUILD
blob: a2d067f9d2af0589d33fcce6ea3e6280a5be8622 (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:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-set-intspan
_pkgreal=Set-IntSpan
pkgver=1.19
pkgrel=0
pkgdesc="Manages sets of integers, newsrc style"
url="http://search.cpan.org/dist/Set-IntSpan/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SW/SWMCD/$_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="7c21c2fedce5b7be7d8200e2cf2bdca1  Set-IntSpan-1.19.tar.gz"
sha256sums="11b7549b13ec5d87cc695dd4c777cd02983dd5fe9866012877fb530f48b3dfd0  Set-IntSpan-1.19.tar.gz"
sha512sums="de743bc26e4e9daf0bff636279219776421a31d1b3fa5d8e9232e051f2396cbfdd339dacd4aadc006cf31527935550c8659d8c80cbaed5942895239ab36c9cd9  Set-IntSpan-1.19.tar.gz"