aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-convert-uulib/APKBUILD
blob: 896962af9fd5bcd91b57213614f084c15f5116a2 (plain) (blame)
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
36
37
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-convert-uulib
pkgver=1.62
pkgrel=0
pkgdesc="Convert::UUlib perl module"
url="https://metacpan.org/release/Convert-UUlib/"
arch="all"
license="GPL-2.0-or-later or Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev perl-canary-stability"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/Convert-UUlib-$pkgver.tar.gz"
builddir="$srcdir"/Convert-UUlib-$pkgver

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

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	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
}

sha512sums="52fb29bf53d2f4af8afc7adbcb7c136eb6af38f3dc4d12ac507c9c8be7f1619b709b6fc30f9838696bcf9fe9aeed95c0d94fa077c3505f55db9664ee23028e3d  Convert-UUlib-1.62.tar.gz"