# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-crypt-eksblowfish
_pkgreal=Crypt-Eksblowfish
pkgver=0.009
pkgrel=4
pkgdesc="the Eksblowfish block cipher"
url="http://search.cpan.org/dist/Crypt-Eksblowfish/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-class-mix"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor || return 1
}

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

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

md5sums="d2907b00cc500fc523bf86bb427d9bb8  Crypt-Eksblowfish-0.009.tar.gz"
sha256sums="3cc7126d5841107237a9be2dc5c7fbc167cf3c4b4ce34678a8448b850757014c  Crypt-Eksblowfish-0.009.tar.gz"
sha512sums="ca66a1ca4fd71388f25dc77c943e2416ed8534576309dd75f19a7219457418140c1bd21887d61918c34d3d6f9e11ea822b4661d30c6edf7f3673bbcd9a00a51b  Crypt-Eksblowfish-0.009.tar.gz"
