commit d1b2078

hovercats  ·  2024-06-20 06:06:30 +0000 UTC
parent a6abe79
wmutils: install all tools | include opt aswell
4 files changed,  +16, -10
+13, -9
 1@@ -1,17 +1,21 @@
 2 #!/bin/sh -e 
 3 
 4+make \
 5+	CFLAGS="$CFLAGS -I/usr/include" \
 6+	LDFLAGS="$LDFLAGS -static -L/usr/lib -lxcb -lxcb-shm -lxcb-util -lxcb-image -lxcb-render-util -lxcb-render -lxcb-cursor -lXau /usr/lib/*.a"
 7+make \
 8+	MANPREFIX=/usr/share/man \
 9+	PREFIX=/usr \
10+	DESTDIR="$1" \
11+	install
12 
13-# remove atomx and slw, as theyre giving me linking issues.
14-sed '/atomx.c/d' Makefile > _
15-mv -f _ Makefile
16-sed '/slw.c/d' Makefile > _
17-mv -f _ Makefile
18-sed 's/wmp.c.*/wmp.c/' Makefile > _
19+cd opt
20+
21+# fix order so that we can build things statically linked
22+sed 's/$(LDFLAGS) util.o/util.o $(LDFLAGS)/' Makefile > _
23 mv -f _ Makefile
24 
25-make \
26-	CFLAGS="$CFLAGS -I/usr/include" \
27-	LDFLAGS="$LDFLAGS -static -L/usr/lib -lxcb -lxcb-shm -lxcb-util -lxcb-image -lxcb-render-util -lxcb-render -lxcb-cursor -lXau"
28+make LDFLAGS="$LDFLAGS -static -lxcb -lxcb-util -lXau"
29 make \
30 	MANPREFIX=/usr/share/man \
31 	PREFIX=/usr \
+1, -0
1@@ -1 +1,2 @@
2 710721fecf9f0f21d53e04e7eca5143a3c9831d971308a412487860a97f543b7da
3+0dacfe7b393f3ea9c51651b5d8a47c9156ea5fabe632183280405635a18ba17d13
+1, -0
1@@ -1 +1,2 @@
2 https://github.com/wmutils/core/archive/refs/tags/v1.7.tar.gz
3+https://github.com/wmutils/opt/archive/140f4677e614c6fdc130103dfc1c8ec970043e4f.tar.gz opt
+1, -1
1@@ -1 +1 @@
2-1.7 1
3+1.7 2