aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-file-temp/APKBUILD
blob: c1f8bc32e2a5018b9c86f19de87a93e1c5a1d74e (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.2308
pkgrel=0
pkgdesc="Return name and handle of a temporary file safely"
url="http://search.cpan.org/dist/File-Temp/"
arch="noarch"
license="GPL PerlArtistic"
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="a85c3b5d7f39cfd64c370d72cead15f2d6d713b995ceca71e8af359cd686ae685e1ac6ca91e49165b7e867b1d635d1f124e788b92b01f2bda0b3970f2ad983db  File-Temp-0.2308.tar.gz"