summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-http-server-simple/PKGBUILD
blob: 06ba6de053286daf2a77d984231ccb74d789b42a (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
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-http-server-simple
pkgver=0.52
pkgrel=1
pkgdesc="Lightweight HTTP server"
arch=(any)
url="http://search.cpan.org/dist/HTTP-Server-Simple"
license=('GPL' 'PerlArtistic')
depends=('perl-uri')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/B/BP/BPS/HTTP-Server-Simple-$pkgver.tar.gz)
sha256sums=('d8939fa4f12bd6b8c043537fd0bf96b055ac3686b9cdd9fa773dca6ae679cb4c')

build() {
  cd  "$srcdir"/HTTP-Server-Simple-$pkgver
  PERL_USE_UNSAFE_INC=1 \
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/HTTP-Server-Simple-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}