| 1 | # Automatically generated by apkbuild-cpan, template 2 |
| 2 | # Contributor: Timo Teräs <[email protected]> |
| 3 | # Maintainer: Timo Teräs <[email protected]> |
| 4 | pkgname=perl-string-camelcase |
| 5 | _pkgreal=String-CamelCase |
| 6 | pkgver=0.04 |
| 7 | pkgrel=2 |
| 8 | pkgdesc="camelcase, de-camelcase" |
| 9 | url="https://metacpan.org/release/String-CamelCase" |
| 10 | arch="noarch" |
| 11 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 12 | depends="perl" |
| 13 | subpackages="$pkgname-doc" |
| 14 | source="https://cpan.metacpan.org/authors/id/H/HI/HIO/String-CamelCase-$pkgver.tar.gz" |
| 15 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 16 | |
| 17 | prepare() { |
| 18 | default_prepare |
| 19 | |
| 20 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 21 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor |
| 22 | } |
| 23 | |
| 24 | build() { |
| 25 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 26 | make |
| 27 | } |
| 28 | |
| 29 | package() { |
| 30 | make DESTDIR="$pkgdir" install |
| 31 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete |
| 32 | } |
| 33 | |
| 34 | check() { |
| 35 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 36 | make test |
| 37 | } |
| 38 | |
| 39 | sha512sums="b5a5c1b2f2b3a0be3c25891948ce456d8fccf6247a52efc4045c6607a45108caa92a7f12240ab57b618a27b8c42bf8855e9b1cd84a14bce0151e93954c93b256 String-CamelCase-0.04.tar.gz" |