diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | DEBIAN/control | 7 | ||||
| -rw-r--r-- | Makefile | 29 |
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-* + |