diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-09-19 14:18:52 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-09-19 14:19:54 +0000 |
commit | 425903c2ccb5e95a2462c1f706bacf3ae25ff6ad (patch) | |
tree | 9d403f345dceac8c41043e0f8e186b81f7513a75 | |
parent | b9b71e09ad7b2131e3f56b7c730361306166ebe4 (diff) | |
download | aports-425903c2ccb5e95a2462c1f706bacf3ae25ff6ad.tar.bz2 aports-425903c2ccb5e95a2462c1f706bacf3ae25ff6ad.tar.xz |
testing/perl-http-server-simple: new aport
-rw-r--r-- | testing/perl-http-server-simple/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-http-server-simple/APKBUILD b/testing/perl-http-server-simple/APKBUILD new file mode 100644 index 0000000000..812a413095 --- /dev/null +++ b/testing/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=0 +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 && make test +} + +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" |