# 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.049
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="a033e23e133122f8742cbf27ccc627e3  Data-GUID-0.049.tar.gz"
sha256sums="b8af437d49fd0425a23ebff3e5989dae64deeaf0e046aa5f413665cd3169a77b  Data-GUID-0.049.tar.gz"
sha512sums="1404322971af93067e121052a47f796ac77d19dbeb328dc5db0e60df1c4ce24f614679198afb442cc3ff4326e76df84ff762f85b4e129f44e1441c5beb40801e  Data-GUID-0.049.tar.gz"
