diff options
Diffstat (limited to 'unmaintained/perl-http-server-simple/APKBUILD')
-rw-r--r-- | unmaintained/perl-http-server-simple/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/unmaintained/perl-http-server-simple/APKBUILD b/unmaintained/perl-http-server-simple/APKBUILD new file mode 100644 index 0000000000..fa2edca666 --- /dev/null +++ b/unmaintained/perl-http-server-simple/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: +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" |