aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-par-packer/APKBUILD
blob: 28f239b9cd5a3443b5c798723f3044f61c2e4d97 (plain) (blame)
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.047
_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="d128f99f7139feb5bd967b675a2407754533e550e8a3d8ae0fe782dea6ebcee9663044f56aeebf2ab67cffad7e32ef2044f5e0e23b69c65b1523759889ce6d7e  PAR-Packer-1.047.tar.gz"