diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | DEBIAN/control | 8 | ||||
| -rw-r--r-- | Makefile | 35 | ||||
| -rw-r--r-- | dwm.desktop | 6 |
4 files changed, 50 insertions, 0 deletions
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 <saintruler@gmail.com> +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 |