[arch-commits] Commit in http-parser/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Apr 12 07:24:40 UTC 2019
Date: Friday, April 12, 2019 @ 07:24:39
Author: felixonmars
Revision: 451209
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 451208, http-parser/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: http-parser/repos/community-testing-x86_64/PKGBUILD (from rev 451208, http-parser/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2019-04-12 07:24:39 UTC (rev 451209)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Brian Bidulock <bidulock at openss7.org>
+
+pkgname=http-parser
+pkgver=2.9.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::"${url}/archive/v$pkgver.tar.gz")
+sha512sums=('110a1861666cdd45857c3ab0e9bf8a3eb9d98f86fe001f7c620009e13186377de805d295f7751921cd5c9d4c2781807b3ae00f939af04d7365a3a45aa20b5052')
+
+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