summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-http-daemon/PKGBUILD
blob: bf55adc4e0b9fc44eb7a5103f4513195924cb2e6 (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
# Maintainer : Justin "juster" Davis <jrcd83@gmail.com>
# Generator  : pbjam 0.01
# $Id: PKGBUILD 140094 2011-10-06 16:01:26Z bluewind $

pkgname=perl-http-daemon
pkgver=6.00
pkgrel=1
pkgdesc="a simple http server class"
arch=(any)
license=(PerlArtistic GPL)
options=('!emptydirs')
depends=('perl>=5.8.8' 'perl-http-date>=6' 'perl-http-message'
	 'perl-lwp-mediatypes>=6')
makedepends=()
checkdepends=()
conflicts=('perl-libwww<6')
url=http://search.cpan.org/dist/HTTP-Daemon
source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Daemon-6.00.tar.gz)
md5sums=(36c8048775b8b53a6fb7c9d781658926)
sha512sums=(9fcdfc46e359bea37b10c979212f14e1cb7a1e0a24d2602b5465426fdac65dd43e4c3a73c4a956505a675a01caeb8385e20723f4362dcaa326a3d829d618b455)
_distdir="${srcdir}/HTTP-Daemon-6.00"

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
      PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
      MODULEBUILDRC=/dev/null

    cd "$_distdir"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    cd "$_distdir"
    make test
  )
}

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

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: