aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-convert-uulib/APKBUILD
blob: aa753606411398a7683a88ddce0cef9fa65c7f6a (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
36
37
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-convert-uulib
pkgver=1.6
pkgrel=1
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="b8ae12a2d91e9165185cffbc6a94dd8dd14fa129ae592dc6cc7bb1d7fbe9264e302965f26e68f0bc92c00b3233a2c43ba78a9a971eecee4a442ccced5a3239ea  Convert-UUlib-1.6.tar.gz"