| 1 | # Automatically generated by apkbuild-cpan, template 2 |
| 2 | # Contributor: Timothy Legge <[email protected]> |
| 3 | # Maintainer: Timothy Legge <[email protected]> |
| 4 | pkgname=perl-gssapi |
| 5 | _pkgreal=GSSAPI |
| 6 | pkgver=0.28 |
| 7 | pkgrel=12 |
| 8 | pkgdesc="Perl module for GSSAPI" |
| 9 | url="https://metacpan.org/release/GSSAPI/" |
| 10 | arch="all" |
| 11 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 12 | makedepends="perl-dev krb5-dev" |
| 13 | subpackages="$pkgname-doc" |
| 14 | source="https://cpan.metacpan.org/authors/id/A/AG/AGROLMS/GSSAPI-$pkgver.tar.gz" |
| 15 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 16 | |
| 17 | build() { |
| 18 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 19 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor |
| 20 | make |
| 21 | } |
| 22 | |
| 23 | check() { |
| 24 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 25 | make test |
| 26 | } |
| 27 | |
| 28 | package() { |
| 29 | make DESTDIR="$pkgdir" install |
| 30 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete |
| 31 | } |
| 32 | |
| 33 | sha512sums="4bae4729c216da099f6f0479ef34874fa62c1afc57bf56860e1ce082e9e6a902ec072f9e976ab2f1914df1bbad6b6689af04a9867b3ca1a9f11d0287e58aa204 GSSAPI-0.28.tar.gz" |