From ec3e91871229af2fc1a2dce9d95a1076b128d910 Mon Sep 17 00:00:00 2001 From: Tony Olagbaiye Date: Fri, 2 Jul 2021 23:10:40 +0100 Subject: [PATCH] freebsd has no install, eek --- Makefile | 13 ++++++++----- README.org | 6 ++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 306715e..1ec5c26 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,6 @@ LDLIBS=-lstrophe -lpthread $(shell xml2-config --libs) $(shell pkg-config --libs PREFIX ?= /usr/local LIBDIR ?= $(PREFIX)/lib -INSTALL ?= /usr/bin/install SRCS=plugin.c \ account.c \ @@ -59,8 +58,8 @@ tidy: $(FIND) . -name "*.o" -delete clean: - $(RM) $(OBJS) - $(MAKE) -C axc clean + $(RM) -f $(OBJS) + $(MAKE) -C axc clean || true git submodule foreach --recursive git clean -xfd || true git submodule foreach --recursive git reset --hard || true git submodule update --init --recursive || true @@ -70,9 +69,13 @@ distclean: clean install: xmpp.so ifeq ($(shell id -u),0) - $(INSTALL) -s -t $(DESTDIR)$(LIBDIR)/weechat/plugins -D -m 0644 xmpp.so + mkdir -p $(DESTDIR)$(LIBDIR)/weechat/plugins + cp xmpp.so $(DESTDIR)$(LIBDIR)/weechat/plugins/xmpp.so + chmod 644 $(DESTDIR)$(LIBDIR)/weechat/plugins/xmpp.so else - $(INSTALL) -s -t ~/.weechat/plugins -D -m 0755 xmpp.so + mkdir -p ~/.weechat/plugins + cp xmpp.so ~/.weechat/plugins/xmpp.so + chmod 755 ~/.weechat/plugins/xmpp.so endif .PHONY: tags cs diff --git a/README.org b/README.org index d5cc9d0..5ae53d4 100644 --- a/README.org +++ b/README.org @@ -43,13 +43,19 @@ - libstrophe (dynamic, dependency) - libxml2 (dynamic, dependency) + - glib (dynamic, dependency of libomemo) + - sqlite (dynamic, dependency of libomemo/axc) + - libsignal-protocol-c (dynamic, dependency of axc) - weechat (>= v2.5) + .. or just use the guix spec in .envrc + * Building #+begin_src sh git clone git://github.com/bqv/weechat-xmpp.git cd weechat-xmpp + git submodule update --init --recursive make make install #+end_src