[arch-commits] Commit in http-parser/repos (extra-x86_64 extra-x86_64/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Jun 7 17:23:44 UTC 2019
Date: Friday, June 7, 2019 @ 17:23:44
Author: felixonmars
Revision: 355310
archrelease: copy trunk to extra-x86_64
Added:
http-parser/repos/extra-x86_64/
http-parser/repos/extra-x86_64/PKGBUILD
(from rev 355309, http-parser/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: http-parser/repos/extra-x86_64/PKGBUILD (from rev 355309, http-parser/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2019-06-07 17:23:44 UTC (rev 355310)
@@ -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