aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-task-weaken/APKBUILD
blob: a3a801ac2e1c93513ce2cbc74e5e5481f876197e (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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-task-weaken
_pkgreal=Task-Weaken
pkgver=1.05
pkgrel=0
pkgdesc="Ensure that a platform has weaken support"
url="http://search.cpan.org/dist/Task-Weaken/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	make
}

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

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

sha512sums="c19f3f4355770ef74cf4e26cc34a0d35b203e2561d2cb853915b46d754c49a902b6e62fffc5d6fbffcad7c32bd4c1afa7ded3f268d4d7baf1d375da213b14928  Task-Weaken-1.05.tar.gz"