summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dbb9b3a833e8e4f3668eed603171faea3ad97558 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# CPAN Name  : Plack
# Contributor: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Christian Sturm <reezer@reezer.org>
# Contributor: Anton Leontiev <scileont /at/ gmail.com>

pkgname=perl-plack
pkgver=1.0050
pkgrel=1
pkgdesc='Perl Superglue for Web frameworks and Web Servers'
arch=('any')
url='https://metacpan.org/release/Plack'
license=('PerlArtistic' 'GPL')

depends=(
	'perl'
	'perl-apache-logformat-compiler'
	'perl-cookie-baker'
	'perl-devel-stacktrace'
	'perl-devel-stacktrace-ashtml'
	'perl-file-sharedir'
	'perl-filesys-notify-simple'
	'perl-http-entity-parser'
	'perl-http-message'
	'perl-http-headers-fast'
	'perl-http-tiny'
	'perl-hash-multivalue'
	'perl-stream-buffered'
	'perl-test-tcp'
	'perl-try-tiny'
	'perl-uri'
	'perl-www-form-urlencoded')
makedepends=(
	'perl-extutils-makemaker'
	'perl-file-sharedir-install')
checkdepends=(
	'perl-cgi-compile'
	'perl-http-request-ascgi'
	'perl-fcgi'
	'perl-fcgi-procmanager'
	'perl-http-server-simple-psgi'
	'perl-authen-simple-passwd'
	'perl-io-handle-util'
	'perl-log-dispatch-array'
	'perl-lwp-protocol-http10'
	'perl-mime-types'
	'perl-log-log4perl'
	'perl-module-refresh'
	'perl-cgi-emulate-psgi')

source=(http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Plack-$pkgver.tar.gz)
options=(!emptydirs)
md5sums=('0856a900a981769e3d79f0a10ccc3e65')

sanitize() {
	unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
	export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" MODULEBUILDRC=/dev/null
}

build() {
	cd Plack-$pkgver
	sanitize
	/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd Plack-$pkgver
	sanitize
	make test
}

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