aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-http-server-simple/APKBUILD
blob: dcb4e915cf177a0c3a9fc12d6b13e370b7b775d4 (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-http-server-simple
_pkgreal=HTTP-Server-Simple
pkgver=0.51
pkgrel=1
pkgdesc="Lightweight HTTP server"
url="http://search.cpan.org/dist/HTTP-Server-Simple/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-cgi"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BP/BPS/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="ef736daddc7a32a29207fa4ed5f5d62e  HTTP-Server-Simple-0.51.tar.gz"
sha256sums="b9dc5c9f12c16ca39a96f0ede1e27a18a5594274ff8f583000788a7fca136dfb  HTTP-Server-Simple-0.51.tar.gz"
sha512sums="92cb45fc8b57237c064b780ccdfd3ca959daff73cb054590574053cc3dedc81e14627c2aee6d26da48f717f31925d099dd9d11b0e9cd0a98cb3b06221820fabd  HTTP-Server-Simple-0.51.tar.gz"