[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Fri Jun 7 17:23:31 UTC 2019


    Date: Friday, June 7, 2019 @ 17:23:31
  Author: felixonmars
Revision: 355309

community2extra: Moving http-parser from community to extra

Added:
  http-parser/
  http-parser/repos/
  http-parser/trunk/
  http-parser/trunk/PKGBUILD

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

Added: http-parser/trunk/PKGBUILD
===================================================================
--- http-parser/trunk/PKGBUILD	                        (rev 0)
+++ http-parser/trunk/PKGBUILD	2019-06-07 17:23:31 UTC (rev 355309)
@@ -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