| 1 | # Automatically generated by apkbuild-cpan, template 3 |
| 2 | # Contributor: Timothy Legge <[email protected]> |
| 3 | # Maintainer: Timothy Legge <[email protected]> |
| 4 | pkgname=perl-alien-build-plugin-download-gitlab |
| 5 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 6 | _pkgreal=Alien-Build-Plugin-Download-GitLab |
| 7 | pkgver=0.01 |
| 8 | pkgrel=1 |
| 9 | pkgdesc="Alien::Build plugin to download from GitLab" |
| 10 | url="https://metacpan.org/release/Alien-Build-Plugin-Download-GitLab/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl perl-alien-build perl-uri perl-path-tiny perl-uri" |
| 14 | checkdepends="perl-test2-suite" |
| 15 | subpackages="$pkgname-doc" |
| 16 | source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-Plugin-Download-GitLab-$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 INSTALLDIRS=vendor |
| 22 | make |
| 23 | } |
| 24 | |
| 25 | check() { |
| 26 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 27 | make test |
| 28 | } |
| 29 | |
| 30 | package() { |
| 31 | make DESTDIR="$pkgdir" install |
| 32 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete |
| 33 | } |
| 34 | |
| 35 | sha512sums=" |
| 36 | 5a1a1dcefbec09732e377c47a961d57cc21a54fef154158dbad1738a93a143348ddc69430b35207d9db111a74592a7120b2abf2f7045818a74a6397bbf07fb06 Alien-Build-Plugin-Download-GitLab-0.01.tar.gz |
| 37 | " |