projects/aports·blob master · refs

37 lines · 1.3 KiB

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