aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-data-uuid/APKBUILD
blob: ccc57c5d608c0872684f1be5c43f2d4f578b205a (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
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-data-uuid
_pkgreal=Data-UUID
pkgver=1.219
pkgrel=1
pkgdesc="Globally/Universally Unique Identifiers (GUIDs/UUIDs)"
url="http://search.cpan.org/dist/Data-UUID/"
arch="all"
license="bsd"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

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

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="8ca1f802b40d9b563f4de26968677097  Data-UUID-1.219.tar.gz"
sha256sums="c736d39a6fabf163423b85d94c62cbba6f57ca2f3115e21a0d0c91c23836da28  Data-UUID-1.219.tar.gz"
sha512sums="b4a09c0615876b5d0c8304459eb54300fc7e4f808969e3ccc2a929e2d47159cf0aa55e501e8f2a2a795ec31d7e7701978fd4c834eda2c19abc7e131fcb39b35e  Data-UUID-1.219.tar.gz"