summaryrefslogtreecommitdiff
path: root/main/perl-ipc-run3/APKBUILD
blob: a433a651c8496399124ca2de89113f2f9157ca92 (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-ipc-run3
pkgver=0.048
pkgrel=0
pkgdesc="IPC::Run3 perl module"
url="http://search.cpan.org/dist/IPC-Run3/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/IPC-Run3-$pkgver.tar.gz"

_builddir="$srcdir"/IPC-Run3-$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 || return 1
	make && make test || return 1
}

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

md5sums="5a8cec571c51a118b265cf6e24e55761  IPC-Run3-0.048.tar.gz"
sha256sums="3d81c3cc1b5cff69cca9361e2c6e38df0352251ae7b41e2ff3febc850e463565  IPC-Run3-0.048.tar.gz"
sha512sums="50432850d8dccd2e59aa6684d34f3e3242fd7df3eb4d9a5eb02dae389aa46b5fd68cc54114a157c3fe99956e68e74d575ab3db5009b7bf7d5c325f1f109b1262  IPC-Run3-0.048.tar.gz"