aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-io/APKBUILD
blob: 0fe84096a9e3442d54416bbdfb6b51e928c32861 (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
43
44
45
46
# Automatically generated by apkbuild-cpan, template 1
# Contributor: 
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-io
_pkgreal=IO
pkgver=1.25
pkgrel=4
pkgdesc="Perl core IO modules"
url="http://search.cpan.org/dist/IO/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/$_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}')
	# FIXME: it fails a test due to deprecated code
	make # && make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

doc() {
	default_doc
	replaces="perl-doc"
}

md5sums="b88aaf2bb7437725b11e9eb48dfb6c93  IO-1.25.tar.gz"
sha256sums="89790db8b9281235dc995c1a85d532042ff68a90e1504abd39d463f05623e7b5  IO-1.25.tar.gz"
sha512sums="eb922dc89f3dd5996b3abd5e5ffc17b581f7b40b9128461da5d2f97466606a2775e44cb1a707673a4e9fbcda69318d462e1d6ad44c26c9378c2a5b49fb8c06e2  IO-1.25.tar.gz"