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

Felix Yan felixonmars at archlinux.org
Sat Feb 10 16:37:57 UTC 2018


    Date: Saturday, February 10, 2018 @ 16:37:57
  Author: felixonmars
Revision: 291286

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: http-parser/repos/community-staging-x86_64/PKGBUILD (from rev 291285, http-parser/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-02-10 16:37:57 UTC (rev 291286)
@@ -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.0
+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=('57252a29b75f91452fd9bf2d3805bf1ddd95c32aee864cbe47dc676861512b9db95a7b3a4e1b999d5c046ab0d50809e7f184994c24ad48fe97cc2bcc27d9eb7b')
+
+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