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

Felix Yan felixonmars at archlinux.org
Sat Apr 20 18:17:17 UTC 2019


    Date: Saturday, April 20, 2019 @ 18:17:15
  Author: felixonmars
Revision: 452192

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 452191, http-parser/trunk/PKGBUILD)

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

Copied: http-parser/repos/community-testing-x86_64/PKGBUILD (from rev 452191, http-parser/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-04-20 18:17:15 UTC (rev 452192)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Brian Bidulock <bidulock at openss7.org>
+
+pkgname=http-parser
+pkgver=2.9.2
+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::"${url}/archive/v$pkgver.tar.gz")
+sha512sums=('fe21ba46c9297b55a6382497b689da2af88999a9a5716ffef0731057ce1bb053056e4f20147284c78338e48ed1a793a0270fe0edfe3f4b589926e3ede603d023')
+
+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 -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list