http-parser: fix broken http-parser-devel

This commit is contained in:
beefcurtains 2015-06-07 15:52:50 +00:00
parent f387eceff1
commit 4bfa7ea576
2 changed files with 11 additions and 7 deletions

View File

@ -9,26 +9,30 @@
LIBDIR = $(PREFIX)/lib
INCLUDEDIR = $(PREFIX)/include
@@ -112,18 +112,18 @@
@@ -111,19 +111,19 @@
ctags $^
install: library
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
- $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
+ $(INSTALL) -D http_parser.h $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
+ $(INSTALL) -D $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
+ ln -s $(DESTDIR)/$(LIBDIR)/$(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
+ ln -s $(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
install-strip: library
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
- $(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 http_parser.h $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
+ $(INSTALL) -D -s $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
+ ln -s $(DESTDIR)/$(LIBDIR)/$(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
+ ln -s $(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
uninstall:
rm $(INCLUDEDIR)/http_parser.h
- rm $(INCLUDEDIR)/http_parser.h
- rm $(LIBDIR)/$(SONAME)
- rm $(LIBDIR)/libhttp_parser.so
+ rm $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
+ rm $(DESTDIR)/$(LIBDIR)/$(SONAME)
+ rm $(DESTDIR)/$(LIBDIR)/libhttp_parser.so

View File

@ -1,7 +1,7 @@
# Template file for 'http-parser'
pkgname=http-parser
version=2.5.0
revision=1
revision=2
build_style=gnu-makefile
short_desc="HTTP request/response parser for c"
maintainer="Enno Boland <gottox@voidlinux.eu>"