| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=perl-variable-disposition |
| 5 | pkgver=0.005 |
| 6 | pkgrel=1 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=Variable-Disposition |
| 9 | pkgdesc="Dispose of variables" |
| 10 | url="https://metacpan.org/release/Variable-Disposition/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl perl-future" |
| 14 | checkdepends="perl-test-checkdeps perl-test-fatal perl-test-refcount" |
| 15 | subpackages="$pkgname-doc" |
| 16 | source="https://cpan.metacpan.org/authors/id/T/TE/TEAM/Variable-Disposition-$pkgver.tar.gz" |
| 17 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 18 | |
| 19 | build() { |
| 20 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 21 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 22 | INSTALLDIRS=vendor \ |
| 23 | NO_PACKLIST=1 \ |
| 24 | NO_PERLLOCAL=1 |
| 25 | make |
| 26 | } |
| 27 | |
| 28 | check() { |
| 29 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 30 | make test |
| 31 | } |
| 32 | |
| 33 | package() { |
| 34 | make DESTDIR="$pkgdir" install |
| 35 | } |
| 36 | |
| 37 | doc() { |
| 38 | local file; find "$pkgdir" -name "*.pod" | while read -r file; do |
| 39 | amove "${file#"$pkgdir"}" |
| 40 | done |
| 41 | default_doc |
| 42 | } |
| 43 | |
| 44 | sha512sums=" |
| 45 | 4ed05d35658867cfd45c08b7b894d9efcdcf4c5465ec551fdd0ae2b497251f0e5d805de9243505a096757965b59f4d5b2d82c80ec6aeac7887d01dbf704b583a Variable-Disposition-0.005.tar.gz |
| 46 | " |