[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Tue Oct 13 03:11:13 UTC 2015


    Date: Tuesday, October 13, 2015 @ 05:11:13
  Author: fyan
Revision: 143833

addpkg: http-parser 2.5.0-1

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

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

Added: http-parser/trunk/PKGBUILD
===================================================================
--- http-parser/trunk/PKGBUILD	                        (rev 0)
+++ http-parser/trunk/PKGBUILD	2015-10-13 03:11:13 UTC (rev 143833)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Brian Bidulock <bidulock at openss7.org>
+
+pkgname=http-parser
+pkgver=2.5.0
+pkgrel=1
+pkgdesc="Parser for HTTP Request/Response written in C"
+arch=('i686' 'x86_64')
+url="https://github.com/joyent/http-parser"
+license=('MIT')
+depends=('glibc')
+makedepends=('git')
+source=("$pkgname::git+https://github.com/joyent/http-parser.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  sed -i 's|-Werror||' $pkgname/Makefile
+}
+
+build() {
+  cd $pkgname
+  make library
+}
+
+check() {
+  cd $pkgname
+  make test
+}
+
+package() {
+  cd $pkgname
+  make PREFIX="$pkgdir/usr" install
+
+  install -Dm644 LICENSE-MIT \
+        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
+
+  ln -sf libhttp_parser.so.$pkgver "${pkgdir}/usr/lib/libhttp_parser.so"
+}


Property changes on: http-parser/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list