aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-data-uuid/APKBUILD
blob: 53f33c1bbc457d12ca7f227a2c074f12904d0ce9 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-data-uuid
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Data-UUID
pkgver=1.226
pkgrel=2
pkgdesc="Globally/Universally Unique Identifiers (GUIDs/UUIDs)"
url="https://metacpan.org/release/Data-UUID/"
arch="all"
# Not indexed by spdx.org appears to be a variation Microsoft added
license="osf-1990(variant)"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Data-UUID-$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
}

sha512sums="61c13b1aab3263d7bf94ecfde758acbdd986879144adbc436d32e5f5e03d70c8475984458681ab1d73d71bf5169b368c1f21a576ce996e225b6d74b5afd061fe  Data-UUID-1.226.tar.gz"