diff --git a/srcpkgs/kore/patches/makefile.patch b/srcpkgs/kore/patches/makefile.patch new file mode 100644 index 0000000000..f618ad9119 --- /dev/null +++ b/srcpkgs/kore/patches/makefile.patch @@ -0,0 +1,37 @@ +--- Makefile 2018-12-01 10:49:16.048504860 +0100 ++++ Makefile 2018-12-01 10:50:04.173829007 +0100 +@@ -6,10 +6,10 @@ + KORE=kore + KODEV=kodev/kodev + KORE_CRYPTO?=crypto +-INSTALL_DIR=$(PREFIX)/bin +-MAN_DIR=$(PREFIX)/share/man +-SHARE_DIR=$(PREFIX)/share/kore +-INCLUDE_DIR=$(PREFIX)/include/kore ++INSTALL_DIR=$(DESTDIR)/$(PREFIX)/bin ++MAN_DIR=$(DESTDIR)/$(PREFIX)/share/man ++SHARE_DIR=$(DESTDIR)/$(PREFIX)/share/kore ++INCLUDE_DIR=$(DESTDIR)/$(PREFIX)/include/kore + + VERSION=src/version.c + +@@ -21,7 +21,7 @@ + FEATURES= + FEATURES_INC= + +-CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes ++CFLAGS::=$(CFLAGS) -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes + CFLAGS+=-Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual + CFLAGS+=-Wsign-compare -Iinclude/kore -std=c99 -pedantic + CFLAGS+=-DPREFIX='"$(PREFIX)"' -fstack-protector-all +--- kodev/Makefile.orig 2018-12-01 10:53:51.779628063 +0100 ++++ kodev/Makefile 2018-12-01 10:54:18.675249411 +0100 +@@ -4,7 +4,7 @@ + PREFIX?=/usr/local + OBJDIR?=obj + KODEV=kodev +-INSTALL_DIR=$(PREFIX)/bin ++INSTALL_DIR=$(DESTDIR)/$(PREFIX)/bin + + S_SRC= ../src/cli.c + diff --git a/srcpkgs/kore/template b/srcpkgs/kore/template new file mode 100644 index 0000000000..3e5b47e116 --- /dev/null +++ b/srcpkgs/kore/template @@ -0,0 +1,18 @@ +# Template file for 'kore' +pkgname=kore +version=3.2.0 +revision=1 +build_style=gnu-makefile +make_use_env=yes +make_build_args="PREFIX=/usr" +makedepends="libressl-devel" +short_desc="Easy to use web platform for writing scalable web APIs in C" +maintainer="Helmut Pozimski " +license="ISC" +homepage="https://kore.io" +distfiles="https://kore.io/releases/kore-${version}.tar.gz" +checksum=24b7a0e0d7f07e1f5a60984feedd37c1aa19a9a5e2c97cccce061b689f8345f8 + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/kore/update b/srcpkgs/kore/update new file mode 100644 index 0000000000..25094d8a98 --- /dev/null +++ b/srcpkgs/kore/update @@ -0,0 +1 @@ +pattern='(?<=release: )([0-9]\.[0-9]\.[0-9])'