aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-sort-versions/APKBUILD
blob: bd1c3b8a22253c2f8b71b21e26e539f1ca783ac9 (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: 
pkgname=perl-sort-versions
_pkgreal=Sort-Versions
pkgver=1.61
pkgrel=0
pkgdesc="a perl 5 module for sorting of revision-like numbers"
url="http://search.cpan.org/dist/Sort-Versions/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/$_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="5da4058c646c15465a8f9b2c1bf70cba  Sort-Versions-1.61.tar.gz"
sha256sums="3e58b98002e448eda425dcdd5c745b5d4ba9328d0022a60a84d333ef6df5a174  Sort-Versions-1.61.tar.gz"
sha512sums="e1336ffe180ebd0a15bf77d5f216809def7d297958da5d4f5e6f816c67a55f22cad48e2462b533b8b530d00b5178cda553d6dd164b6c2d9478242974d31afb59  Sort-Versions-1.61.tar.gz"