summaryrefslogtreecommitdiffstats
path: root/main/perl-package-stash/APKBUILD
blob: f4b697506116409b55d2561a3cf52d2a99c2b521 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-package-stash
_pkgreal=Package-Stash
pkgver=0.36
pkgrel=0
pkgdesc="routines for manipulating stashes"
url="http://search.cpan.org/dist/Package-Stash/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-dist-checkconflicts perl-package-stash-xs perl-module-implementation"
cpanmakedepends="perl-test-fatal perl-test-requires  perl-test-fatal perl-test-requires "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DO/DOY/$_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 && make test
}

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

md5sums="066aa5099af88457c4f1eb2448272061  Package-Stash-0.36.tar.gz"
sha256sums="a01cf48c7cd7a35e0d9ae4b1dc2702698397f55a2ce549d0bdacdc57ea6c73f1  Package-Stash-0.36.tar.gz"
sha512sums="117d50fcc16b21171c693f12dce86ad69d34f9cb2d0afe852a077147c3b1115c8ecfc765695236c04728396653e4c0fd4cdae8f2fad03131fbb5d5b471c61b01  Package-Stash-0.36.tar.gz"