aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-data-guid/APKBUILD
blob: 8f450f8e8d748130341c9359aa6f10e9b0866a8e (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-guid
_pkgreal=Data-GUID
pkgver=0.048
pkgrel=0
pkgdesc="globally unique identifiers"
url="http://search.cpan.org/dist/Data-GUID/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-sub-install perl-sub-exporter perl-data-uuid"
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="8709af7609214edcad1ec99ecd62f048  Data-GUID-0.048.tar.gz"
sha256sums="cb263b1e6eeecc5797de6f945d42ace2db26c156172883550b73fa2ecdab29dc  Data-GUID-0.048.tar.gz"
sha512sums="42c0472f3614d342440c41aa009e906cd2874c7578cf1a197711a22ff2c02227cec84ee6e497b64e8f52843a371d10a09732c713c58a6d189aba399916581cd3  Data-GUID-0.048.tar.gz"