From fe1d288954cb4a5e40c0403bc6f2a4bf37ee8309 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 13 Oct 2020 23:02:55 -0300 Subject: community/http-parser: move from main --- community/http-parser/APKBUILD | 32 ++++++++++++++++++++++++++++++++ main/http-parser/APKBUILD | 32 -------------------------------- 2 files changed, 32 insertions(+), 32 deletions(-) create mode 100644 community/http-parser/APKBUILD delete mode 100644 main/http-parser/APKBUILD diff --git a/community/http-parser/APKBUILD b/community/http-parser/APKBUILD new file mode 100644 index 00000000000..8fddc1b1a03 --- /dev/null +++ b/community/http-parser/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Jakub Jirutka +# Maintainer: Jakub Jirutka +pkgname=http-parser +pkgver=2.9.4 +pkgrel=0 +pkgdesc="HTTP request/response parser for C" +url="https://github.com/nodejs/http-parser" +arch="all" +license="MIT" +subpackages="$pkgname-dev" +source="https://github.com/nodejs/http-parser/archive/v$pkgver/http-parser-$pkgver.tar.gz" + +case "$CARCH" in + armhf|armv7) + # Tests fail due to padding + options="$options !check" + ;; +esac + +build() { + make library +} + +check() { + make test +} + +package() { + make install DESTDIR="$pkgdir" PREFIX="/usr" +} + +sha512sums="b45df7b94d1c51079d44687d0a7f901f44faae51df4e84c7e3fe38f130c2d809d0e7c2a146c57b3723e60732aededc246bf44eadb10a95b710963d641f9fe7cd http-parser-2.9.4.tar.gz" diff --git a/main/http-parser/APKBUILD b/main/http-parser/APKBUILD deleted file mode 100644 index 8fddc1b1a03..00000000000 --- a/main/http-parser/APKBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Contributor: Jakub Jirutka -# Maintainer: Jakub Jirutka -pkgname=http-parser -pkgver=2.9.4 -pkgrel=0 -pkgdesc="HTTP request/response parser for C" -url="https://github.com/nodejs/http-parser" -arch="all" -license="MIT" -subpackages="$pkgname-dev" -source="https://github.com/nodejs/http-parser/archive/v$pkgver/http-parser-$pkgver.tar.gz" - -case "$CARCH" in - armhf|armv7) - # Tests fail due to padding - options="$options !check" - ;; -esac - -build() { - make library -} - -check() { - make test -} - -package() { - make install DESTDIR="$pkgdir" PREFIX="/usr" -} - -sha512sums="b45df7b94d1c51079d44687d0a7f901f44faae51df4e84c7e3fe38f130c2d809d0e7c2a146c57b3723e60732aededc246bf44eadb10a95b710963d641f9fe7cd http-parser-2.9.4.tar.gz" -- cgit v1.2.3