New package: http-parser-2.5.0
This commit is contained in:
parent
1944d99cc2
commit
4242595cf7
4 changed files with 65 additions and 0 deletions
|
@ -2041,3 +2041,4 @@ libkasten2core.so.2 okteta-4.14.2_1
|
||||||
libkasten2controllers.so.2 okteta-4.14.2_1
|
libkasten2controllers.so.2 okteta-4.14.2_1
|
||||||
libkasten2okteta1gui.so.1 okteta-4.14.2_1
|
libkasten2okteta1gui.so.1 okteta-4.14.2_1
|
||||||
libkasten2okteta1core.so.1 okteta-4.14.2_1
|
libkasten2okteta1core.so.1 okteta-4.14.2_1
|
||||||
|
libhttp_parser.so.2.5.0 http-parser-2.5.0_1
|
||||||
|
|
1
srcpkgs/http-parser-devel
Symbolic link
1
srcpkgs/http-parser-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
http-parser
|
36
srcpkgs/http-parser/patches/fix-destdir.diff
Normal file
36
srcpkgs/http-parser/patches/fix-destdir.diff
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
--- Makefile.orig 2015-05-12 09:32:01.346321752 +0200
|
||||||
|
+++ Makefile 2015-05-12 09:33:29.063315187 +0200
|
||||||
|
@@ -43,7 +43,7 @@
|
||||||
|
LDFLAGS_LIB = $(LDFLAGS) -shared
|
||||||
|
|
||||||
|
INSTALL ?= install
|
||||||
|
-PREFIX ?= $(DESTDIR)/usr/local
|
||||||
|
+PREFIX ?= /usr/local
|
||||||
|
LIBDIR = $(PREFIX)/lib
|
||||||
|
INCLUDEDIR = $(PREFIX)/include
|
||||||
|
|
||||||
|
@@ -112,18 +112,18 @@
|
||||||
|
|
||||||
|
install: library
|
||||||
|
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
||||||
|
- $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
|
||||||
|
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
|
||||||
|
+ $(INSTALL) -D $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
|
||||||
|
+ ln -s $(DESTDIR)/$(LIBDIR)/$(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
|
||||||
|
|
||||||
|
install-strip: library
|
||||||
|
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
||||||
|
- $(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
|
||||||
|
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
|
||||||
|
+ $(INSTALL) -D -s $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
|
||||||
|
+ ln -s $(DESTDIR)/$(LIBDIR)/$(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm $(INCLUDEDIR)/http_parser.h
|
||||||
|
- rm $(LIBDIR)/$(SONAME)
|
||||||
|
- rm $(LIBDIR)/libhttp_parser.so
|
||||||
|
+ rm $(DESTDIR)/$(LIBDIR)/$(SONAME)
|
||||||
|
+ rm $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.o *.a tags test test_fast test_g \
|
27
srcpkgs/http-parser/template
Normal file
27
srcpkgs/http-parser/template
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Template file for 'http-parser'
|
||||||
|
pkgname=http-parser
|
||||||
|
version=2.5.0
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-makefile
|
||||||
|
short_desc="HTTP request/response parser for c"
|
||||||
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||||
|
license="GPL-3"
|
||||||
|
homepage="https://github.com/joyent/http-parser"
|
||||||
|
distfiles="$homepage/archive/v${version}.tar.gz"
|
||||||
|
checksum=e3b4ba58f4e6ee5fbec781df020e5cb74c3a799a07f059e1e125127a0b801481
|
||||||
|
make_build_target=library
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
vmkdir usr/lib/pkgconfig
|
||||||
|
vmkdir usr/include
|
||||||
|
}
|
||||||
|
|
||||||
|
http-parser-devel_package() {
|
||||||
|
depends="$sourcepkg>=${version}_${revision}"
|
||||||
|
short_desc+=" - development files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/include
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue