From b0e8be2bcf6995db361b389486b291a3af1ea878 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 17 Aug 2020 21:12:43 -0400 Subject: Initial commit --- .gitignore | 1 + DEBIAN/control | 8 ++++++++ Makefile | 35 +++++++++++++++++++++++++++++++++++ dwm.desktop | 6 ++++++ 4 files changed, 50 insertions(+) create mode 100644 .gitignore create mode 100644 DEBIAN/control create mode 100644 Makefile create mode 100644 dwm.desktop diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7af355a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dwm-* diff --git a/DEBIAN/control b/DEBIAN/control new file mode 100644 index 0000000..4284689 --- /dev/null +++ b/DEBIAN/control @@ -0,0 +1,8 @@ +Package: dwm +Version: 6.2-1 +Provides: dwm +Maintainer: Andrew Guschin +Architecture: amd64 +Section: x11 +Description: Dynamic Window Manager +Depends: libc6, libfontconfig1, libx11-6, libxft2, libxinerama1, dmenu diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..39ae2fd --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +.PHONY: all +.DEFAULT_GOAL: all +all: create build + +VERSION=6.2 +PKG_NAME=dwm +PKG_FOLDER=${PKG_NAME}-package +PKG_URL=https://git.vasthecat.ru/${PKG_NAME}.git +SRC=${PKG_NAME}-src + +${SRC}: + git clone "${PKG_URL}" "${SRC}" + +${PKG_FOLDER}: + mkdir -p "${PKG_FOLDER}/usr/bin" + mkdir -p "${PKG_FOLDER}/usr/share/man/man1" + mkdir -p "${PKG_FOLDER}/usr/share/pixmaps" + mkdir -p "${PKG_FOLDER}/usr/share/applications" + cp -r "DEBIAN" "${PKG_FOLDER}" + +create: ${SRC} ${PKG_FOLDER} + cp "${SRC}/${PKG_NAME}.png" "${PKG_FOLDER}/usr/share/pixmaps/" + cp "${PKG_NAME}.desktop" "${PKG_FOLDER}/usr/share/applications/" + make -C "${SRC}" + cp -f "${SRC}/${PKG_NAME}" "${PKG_FOLDER}/usr/bin" + chmod 755 "${PKG_FOLDER}/usr/bin/${PKG_NAME}" + sed "s/VERSION/${VERSION}/g" < ${SRC}/${PKG_NAME}.1 > ${PKG_FOLDER}/usr/share/man/man1/${PKG_NAME}.1 + chmod 644 ${PKG_FOLDER}/usr/share/man/man1/${PKG_NAME}.1 + +build: + fakeroot dpkg-deb --build "${PKG_FOLDER}" + +clean: + rm -rf dwm-* + diff --git a/dwm.desktop b/dwm.desktop new file mode 100644 index 0000000..66ab2f8 --- /dev/null +++ b/dwm.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=dwm +Type=Application +Comment=Dynamic Window Manager +Exec=dwm +Icon=dwm -- cgit v1.2.3