diff options
Diffstat (limited to 'main/perl-struct-dumb/APKBUILD')
-rw-r--r-- | main/perl-struct-dumb/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-struct-dumb/APKBUILD b/main/perl-struct-dumb/APKBUILD new file mode 100644 index 0000000000..efd6eaa53c --- /dev/null +++ b/main/perl-struct-dumb/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=perl-struct-dumb +_pkgreal=Struct-Dumb +pkgver=0.02 +pkgrel=0 +pkgdesc="make simple lightweight record-like structures" +url="http://search.cpan.org/dist/Struct-Dumb/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-test-fatal " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_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="1bfd205321a58efdf390a600abb2d6b7 Struct-Dumb-0.02.tar.gz" +sha256sums="9c483e45f7c6365ccf694aa8f09ec05598264cee70007e7b99c34c37f2935a5b Struct-Dumb-0.02.tar.gz" +sha512sums="5814dde8fcb22aba50c2e980ca8a1bddf3dc659f575ef65de695ef1aab408d28d2a8a3be282c1e6e12f27f7d137f44c33f67a11d79ca8cf04809695e83d5a1ad Struct-Dumb-0.02.tar.gz" |