aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-file-temp/APKBUILD
blob: f0617cdc42ec618e0b85ed7789fb5d449361548f (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-temp
_pkgreal=File-Temp
pkgver=0.2309
pkgrel=0
pkgdesc="Return name and handle of a temporary file safely"
url="http://search.cpan.org/dist/File-Temp/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_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}')
	make
}

check() {
	cd "$builddir"
	make test
}

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

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

sha512sums="9812e35d561ccff310262dc5bc50a9612fb3bbf7765a715c8fcad7653de977d08382733e38978586d47f943152b4a9619b76357c2f823c13f78dbf9b4eb4cd65  File-Temp-0.2309.tar.gz"