New package: clib-1.8.1
This commit is contained in:
parent
d607a8d21c
commit
9015df8205
2 changed files with 43 additions and 0 deletions
26
srcpkgs/clib/patches/destdir.patch
Normal file
26
srcpkgs/clib/patches/destdir.patch
Normal file
|
@ -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
|
17
srcpkgs/clib/template
Normal file
17
srcpkgs/clib/template
Normal file
|
@ -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 <Vaelatern@Voidlinux.eu>"
|
||||||
|
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
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue