summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8abbf122a1d253bdc45cd1e6444f11e52cd4750a (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
# CPAN Name  : Plack::Middleware::ReverseProxy
# Submitter  : gergan_penkov
# Maintainer : gergan_penkov

pkgname='perl-plack-middleware-reverseproxy'
pkgver='0.15'
pkgrel=1
pkgdesc="Plack::Middleware::ReverseProxy - Supports app to run as a reverse proxy backend"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl' 'perl-plack' 'perl-yaml' 'perl-test-base')
url='http://search.cpan.org/~miyagawa/Plack-Middleware-ReverseProxy/'
source=("http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Plack-Middleware-ReverseProxy-$pkgver.tar.gz")
md5sums=('62cc91a27f9388f238ea070c230bb5d5')

build() {
  cd "$srcdir/Plack-Middleware-ReverseProxy-$pkgver"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "$srcdir/Plack-Middleware-ReverseProxy-$pkgver"
  PERL_MM_USE_DEFAULT=1
  make test
}

package() {
  cd "$srcdir/Plack-Middleware-ReverseProxy-$pkgver"
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -o -name '*.pod' -delete
}