summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-08-17 21:10:42 -0400
committerAndrew <saintruler@gmail.com>2020-08-17 21:10:42 -0400
commitf3b8905d31695859304728e57e75855790a5bbc5 (patch)
tree6896f6bda5c4def62080456d09d372362e13f2d6
Initial commitHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--DEBIAN/control7
-rw-r--r--Makefile29
3 files changed, 37 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..edc50f8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+dwmblocks-*
diff --git a/DEBIAN/control b/DEBIAN/control
new file mode 100644
index 0000000..7f31df9
--- /dev/null
+++ b/DEBIAN/control
@@ -0,0 +1,7 @@
+Package: dwmblocks
+Version: 1-1
+Provides: dwmblocks
+Maintainer: Andrew Guschin <saintruler@gmail.com>
+Architecture: amd64
+Section: x11
+Description: Status bar for dwm
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..df0f5f4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+.PHONY: all
+.DEFAULT_GOAL: all
+all: create build
+
+VERSION=1
+PKG_NAME=dwmblocks
+PKG_FOLDER=$(PKG_NAME)-package
+PKG_URL=https://git.vasthecat.ru/$(PKG_NAME).git
+SRC=$(PKG_NAME)-src
+PREFIX=/usr
+
+$(SRC):
+ git clone "$(PKG_URL)" "$(SRC)"
+
+$(PKG_FOLDER):
+ mkdir -p "$(PKG_FOLDER)$(PREFIX)/bin"
+ cp -r "DEBIAN" "$(PKG_FOLDER)"
+
+create: $(SRC) $(PKG_FOLDER)
+ make -C "$(SRC)"
+ cp -f $(SRC)/dwmblocks $(PKG_FOLDER)$(PREFIX)/bin
+ chmod 755 $(PKG_FOLDER)$(PREFIX)/bin/dwmblocks
+
+build:
+ fakeroot dpkg-deb --build "$(PKG_FOLDER)"
+
+clean:
+ rm -rf dwmblocks-*
+