aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-tie-cycle/APKBUILD
blob: d1efe72714d2bdc3d5d20269a4c4a38895abaf6d (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
42
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-tie-cycle
_pkgreal=Tie-Cycle
pkgver=1.221
pkgrel=0
pkgdesc="Cycle through a list of values via a scalar."
url="http://search.cpan.org/dist/Tie-Cycle/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare || return 1

	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="773b14e02cb5815d40160cf7255897e0  Tie-Cycle-1.221.tar.gz"
sha256sums="c6e263bdfd19eea4ceaade3c8af33b35ef83e8251ea53759a3ca49e3729ce681  Tie-Cycle-1.221.tar.gz"
sha512sums="39ed261ef2e3a6a93cc63197966ccae6ddee2473c24241067223448badeb76509682c52043bb34299a27f2f3a35956d3022af2fb13bd331ed2cc132dbc703087  Tie-Cycle-1.221.tar.gz"