aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-sort-naturally/APKBUILD
blob: 3aae2b9b1c14864e4317f9a2950623f0be72bfeb (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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-sort-naturally
_pkgreal=Sort-Naturally
pkgver=1.03
pkgrel=2
pkgdesc="sort lexically, but sort numeral parts numerically"
url="https://metacpan.org/release/Sort-Naturally"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BI/BINGOS/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

sha512sums="6d909026bf470f36a558dcb8bd809ca29db639dffd5a981c05dbf330b093e7f33cfed665510214bb58be4dfe9e2fe1d5f89142cdd770b3c59df267c6d664ba8b  Sort-Naturally-1.03.tar.gz"