[arch-commits] Commit in http-parser/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Apr 8 21:00:05 UTC 2018


    Date: Sunday, April 8, 2018 @ 21:00:04
  Author: felixonmars
Revision: 315292

archrelease: copy trunk to community-testing-x86_64

Added:
  http-parser/repos/community-testing-x86_64/
  http-parser/repos/community-testing-x86_64/PKGBUILD
    (from rev 315291, http-parser/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: http-parser/repos/community-testing-x86_64/PKGBUILD (from rev 315291, http-parser/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-04-08 21:00:04 UTC (rev 315292)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Brian Bidulock <bidulock at openss7.org>
+
+pkgname=http-parser
+pkgver=2.8.1
+pkgrel=1
+pkgdesc="Parser for HTTP Request/Response written in C"
+arch=('x86_64')
+url="https://github.com/nodejs/http-parser"
+license=('MIT')
+depends=('glibc')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nodejs/http-parser/archive/v$pkgver.tar.gz")
+sha512sums=('6f52f543d979f39688ccefae236527a8183929b3d30f5370570107b01cf89d0338b448249a81102b78d31615d2e8f6e7c708f8961f55ece08e7d3a40e5ad0883')
+
+prepare() {
+  sed -i 's|-Werror||' $pkgname-$pkgver/Makefile
+}
+
+build() {
+  cd $pkgname-$pkgver
+  make library
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make test
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make PREFIX="$pkgdir/usr" install
+
+  install -Dm644 LICENSE-MIT \
+        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
+}



More information about the arch-commits mailing list