aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-file-temp/APKBUILD
blob: 166e09e65aee1c27b3ebcc2ac0d07d1b866857f0 (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-temp
_pkgreal=File-Temp
pkgver=0.2304
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"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_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}'`
	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="c1e19bfcc8cfc440b149a108be54b9d2  File-Temp-0.2304.tar.gz"
sha256sums="13415323e48f7c9f34efdedf3d35141a7c3435e2beb8c6b922229dc317d321ac  File-Temp-0.2304.tar.gz"
sha512sums="823acf6ca42eb0548617feec4ce32e24da3fbbcb05d78dadea902e318797ed31bb16ef2b7fee50f79d52adb7dd561b8f97c1b9e11c56ba7d50735efbf639f1db  File-Temp-0.2304.tar.gz"