diff --git a/srcpkgs/clib/patches/destdir.patch b/srcpkgs/clib/patches/destdir.patch new file mode 100644 index 00000000000..32664b74892 --- /dev/null +++ b/srcpkgs/clib/patches/destdir.patch @@ -0,0 +1,26 @@ +--- Makefile.bck 2018-06-12 23:21:49.258145269 -0400 ++++ Makefile 2018-06-12 23:22:23.446097218 -0400 +@@ -1,5 +1,6 @@ +-CC ?= cc +-PREFIX ?= /usr/local ++CC ?= cc ++DESTDIR ?= / ++PREFIX ?= /usr/local + + ifdef EXE + BINS = clib.exe clib-install.exe clib-search.exe +@@ -35,11 +36,11 @@ + $(RM) $(OBJS) + + install: $(BINS) +- $(MKDIR) $(PREFIX)/bin +- $(foreach c, $(BINS), $(CP) $(c) $(PREFIX)/bin/$(c);) ++ $(MKDIR) $(DESTDIR)$(PREFIX)/bin ++ $(foreach c, $(BINS), $(CP) $(c) $(DESTDIR)$(PREFIX)/bin/$(c);) + + uninstall: +- $(foreach c, $(BINS), $(RM) $(PREFIX)/bin/$(c);) ++ $(foreach c, $(BINS), $(RM) $(DESTDIR)$(PREFIX)/bin/$(c);) + + test: + @./test.sh diff --git a/srcpkgs/clib/template b/srcpkgs/clib/template new file mode 100644 index 00000000000..3a339dcd79a --- /dev/null +++ b/srcpkgs/clib/template @@ -0,0 +1,17 @@ +# Template file for 'clib' +pkgname=clib +version=1.8.1 +revision=1 +build_style=gnu-makefile +make_use_env=yes +makedepends="libcurl-devel" +short_desc="C package manager-ish" +maintainer="Toyam Cox " +license="MIT" +homepage="https://github.com/clibs/clib" +distfiles="https://github.com/clibs/clib/archive/1.8.1.tar.gz" +checksum=f5718e316771571971cb4e5a0142f91b47c6bfe32997fd869fc5a90ec091a066 + +post_install() { + vlicense LICENSE +}