aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-file-remove/APKBUILD
blob: 4457ed0d15bb786ff83f18d19bea2c42dac8b2c4 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: 
# Maintainer: 
pkgname=perl-file-remove
_pkgreal=File-Remove
pkgver=1.52
pkgrel=0
pkgdesc="Remove files and directories"
url="http://search.cpan.org/dist/File-Remove/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_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
}

md5sums="e9d6c33a2aac9789036afb4cc23ed8eb  File-Remove-1.52.tar.gz"
sha256sums="4154dc574b8a9a3a555d323f152ac742363c6a69c1f61de15b72728813550bdd  File-Remove-1.52.tar.gz"
sha512sums="6651de14d8fccee9bfeb83bd794c399135aee91733beb7a8a30e6611b4f514ad1989df2459bc72b2d17c9ded57d018d95ade36da2ee24fcf8a22a9659ecdeb5b  File-Remove-1.52.tar.gz"