aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-mime-base64/APKBUILD
blob: 14bc7079e2688844468f423f460c44e2f4f65a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-mime-base64
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=MIME-Base64
pkgver=3.16
pkgrel=2
pkgdesc="Encoding and decoding of base64 strings"
url="https://metacpan.org/release/MIME-Base64/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
source="https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/MIME-Base64-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
	# conflicts with perl apk
	rm -rf "$pkgdir"/usr/share/man
}

sha512sums="717aab853377019c8811656e37e3754b6bfeb81f976eb159b04ad41c7beff67fe8dbbbfe827aefd28090c248d237dd1040789e7701649ffad90b64cafd202cf3  MIME-Base64-3.16.tar.gz"