aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-par-packer/APKBUILD
blob: 81b146146f7e41e2612107bcdef0429e16d60340 (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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-par-packer
pkgver=1.043
_realname=PAR-Packer-$pkgver
pkgrel=0
pkgdesc="App::Packer::Backend interface, for generating stand-alone executables, perl scripts and PAR files"
url="http://search.cpan.org/dist/Par-Packer/"
arch="all"
license="GPL PerlArtistic"
depends="perl-archive-zip perl-par perl-module-scandeps"
makedepends="perl-dev perl-getopt-argvfile"
checkdepends="perl-test-pod perl-ipc-run3"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/$_realname.tar.gz"
builddir="$srcdir/$_realname"

build() {
	cd "$builddir"
	mkdir blib
	cp -rf lib script blib/ # fix parallel install issue on build server
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

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

check() {
	cd "$builddir"
	export PERL_TEST_POD=1
	make test
}

sha512sums="22cd74c8743c864f5de29dcaa25838a4827f01843871ea8cad0df6e160c82412c9f20eec33200998f27596763071a9b35ac017e37a0ac380470971cd404cfe2b  PAR-Packer-1.043.tar.gz"