aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-sharedfork/APKBUILD
blob: 1a3a34a0611195a96e53c0422a38d42f513d9802 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-sharedfork
pkgver=0.34
pkgrel=0
pkgdesc="Test::SharedFork perl module"
url="http://search.cpan.org/dist/Test-SharedFork/"
arch="noarch"
license="GPLv2 or Artistic"
depends="perl perl-test-requires"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Test-SharedFork-$pkgver.tar.gz"

_builddir="$srcdir"/Test-SharedFork-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make || return 1
}

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

md5sums="40b7dd32228f7e6c2e31c41fb863df16  Test-SharedFork-0.34.tar.gz"
sha256sums="48933a21045c2e4a33ffdc70d4f0b8dcbf041fa763e07f006b980fefe2ef04fb  Test-SharedFork-0.34.tar.gz"
sha512sums="b88b5e5129e74e20886707408ecf913a8871c30f132d1430a356f747cee8895fac3cdec708ef954326d3f5cde8742f652fd4cd3863cc074480dfc2c9488f4b0a  Test-SharedFork-0.34.tar.gz"