projects/aports·blob master · refs

37 lines · 1.3 KiB

1# Automatically generated by apkbuild-cpan, template 3
2# Contributor: Duncan Bellamy <[email protected]>
3# Maintainer: Duncan Bellamy <[email protected]>
4pkgname=perl-code-tidyall-plugin-sortlines-naturally
5#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
6_pkgreal=Code-TidyAll-Plugin-SortLines-Naturally
7pkgver=0.000003
8pkgrel=1
9pkgdesc="Sort lines of a file using Unicode::Collate::Locale"
10url="https://metacpan.org/release/Code-TidyAll-Plugin-SortLines-Naturally/"
11arch="noarch"
12license="GPL-1.0-or-later OR Artistic-1.0-Perl"
13depends="perl perl-code-tidyall perl-moo"
14makedepends="perl-dev perl-module-build"
15checkdepends="perl-capture-tiny perl-file-slurper"
16subpackages="$pkgname-doc"
17source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Code-TidyAll-Plugin-SortLines-Naturally-$pkgver.tar.gz"
18builddir="$srcdir/$_pkgreal-$pkgver"
19
20build() {
21 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
22 perl Build.PL --installdirs=vendor
23 ./Build
24}
25
26check() {
27 ./Build test
28}
29
30package() {
31 ./Build install --destdir="$pkgdir"
32 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
33}
34
35sha512sums="
36532d7235179fde5426cd927de3562b5836036b80693a0e7120573a07016de601860a5b7988e4f11f302b678714eb4b38911b8a1ec6335ef1fba78ff7272b386a Code-TidyAll-Plugin-SortLines-Naturally-0.000003.tar.gz
37"