projects/aports·blob master · refs

38 lines · 1.1 KiB

1# Automatically generated by apkbuild-cpan, template 4
2# Contributor: Timothy Legge <[email protected]>
3# Maintainer: Timothy Legge <[email protected]>
4pkgname=perl-mixin-linewise
5pkgver=0.111
6pkgrel=3
7# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
8_pkgreal=Mixin-Linewise
9pkgdesc="write your linewise code for handles; this does the rest"
10url="https://metacpan.org/release/Mixin-Linewise/"
11arch="noarch"
12license="GPL-1.0-or-later OR Artistic-1.0-Perl"
13depends="perl perl-perlio-utf8_strict perl-sub-exporter"
14subpackages="$pkgname-doc"
15source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Mixin-Linewise-$pkgver.tar.gz"
16builddir="$srcdir/$_pkgreal-$pkgver"
17
18build() {
19 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
20 PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
21 INSTALLDIRS=vendor \
22 NO_PACKLIST=1 \
23 NO_PERLLOCAL=1
24 make
25}
26
27check() {
28 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
29 make test
30}
31
32package() {
33 make DESTDIR="$pkgdir" install
34}
35
36sha512sums="
37282c9bbb825ee05f1d916fdfb1caad6c04a917a26c10ae18dc9883706e612915186c49a96209af254329f346bc731547a20ff2db136f0ceaf1edd5d21b120195 Mixin-Linewise-0.111.tar.gz
38"