diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 14:17:11 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 14:21:06 +0000 |
commit | a7d1348c4f2d5b32b7c78c5ef2cd16df846cd49b (patch) | |
tree | 382588ad3d42a808d309f50a6b59062cf09be6a3 /community | |
parent | e54154102c7690b5c94fc25f950c630f2223fbba (diff) | |
download | aports-a7d1348c4f2d5b32b7c78c5ef2cd16df846cd49b.tar.bz2 aports-a7d1348c4f2d5b32b7c78c5ef2cd16df846cd49b.tar.xz |
community/perl-http-server-simple: moved from unmaintained
Diffstat (limited to 'community')
-rw-r--r-- | community/perl-http-server-simple/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/perl-http-server-simple/APKBUILD b/community/perl-http-server-simple/APKBUILD new file mode 100644 index 0000000000..dcb4e915cf --- /dev/null +++ b/community/perl-http-server-simple/APKBUILD @@ -0,0 +1,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" |