summaryrefslogtreecommitdiffstats
path: root/main/perl-struct-dumb/APKBUILD
blob: efd6eaa53c30599a385ee8020caf9ad05f26c78e (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: 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"