commit 94edb3a
hovercats
·
2024-01-20 15:59:53 +0000 UTC
parent a7cb3e1
glazer: add
7 files changed,
+68,
-0
+22,
-0
1@@ -0,0 +1,22 @@
2+#!/bin/sh -e
3+
4+# vendor libwm, as its not needed elsewhere at all
5+(
6+cd libwm
7+
8+export CFLAGS="$CFLAGS -I/."
9+export LDFLAGS="$LDFLAGS -L/."
10+
11+make
12+)
13+
14+# change bordercolor
15+sed 's/deadca7/836421/' config.def.h > _
16+mv _ config.def.h
17+
18+make
19+make DESTDIR="$1" PREFIX=/ install
20+
21+# Makefile doesnt install manpages
22+mkdir -p "$1/share/man/man1"
23+cp glazier.1 "$1/share/man/man1"
+4,
-0
1@@ -0,0 +1,4 @@
2+d80ee3f5911336a114a1a653d2e1a449898dd7b29bb1e2b03c034981a5721aa435
3+9f74fa925179072461682ec362b6f9a557d2ea80fdde07e18e397ad7229f4dccc5
4+ed51de7690119d729f172934ee508fd660be1db60ac280a8679d15605e0a31b959
5+d361615dabadc0f098efbf5e267c8ef4efb5367b799f12b8c473a908c45f588be7
+5,
-0
1@@ -0,0 +1,5 @@
2+libXau make
3+libxcb make
4+xcb-util make
5+xcb-util-cursor make
6+xcb-util-image make
+10,
-0
1@@ -0,0 +1,10 @@
2+CC = cc
3+LD = ${CC}
4+
5+PREFIX = /usr/local
6+MANDIR = ${PREFIX}/man
7+
8+CPPFLAGS = -I./libwm
9+CFLAGS += -Wall -Wextra -pedantic
10+LDFLAGS += -L./libwm ${LIBS} -static
11+LIBS = -lwm -lxcb -lXau -lxcb-cursor -lxcb-render -lxcb-render-util -lxcb-image -lxcb-shm -lxcb-util -lxcb-randr
+22,
-0
1@@ -0,0 +1,22 @@
2+include config.mk
3+
4+all: glazier
5+
6+glazier: glazier.o
7+ $(LD) -o $@ glazier.o $(LDFLAGS)
8+
9+glazier.o: glazier.c config.h
10+
11+config.h: config.def.h
12+ cp config.def.h config.h
13+
14+clean:
15+ rm -f glazier ewmh *.o
16+
17+install: glazier
18+ mkdir -p $(DESTDIR)$(PREFIX)/bin
19+ cp glazier $(DESTDIR)$(PREFIX)/bin/glazier
20+ chmod 755 $(DESTDIR)$(PREFIX)/bin/glazier
21+
22+uninstall:
23+ rm $(DESTDIR)$(PREFIX)/bin/glazier
+4,
-0
1@@ -0,0 +1,4 @@
2+https://dl.z3bra.org/releases/glazier-1.1.tar.bz2
3+https://dl.z3bra.org/releases/libwm-1.3.tar.bz2 libwm/
4+files/makefile
5+files/config.mk
+1,
-0
1@@ -0,0 +1 @@
2+1.1 2