From fc529e1d23a71278d499604d0a41d0c9f9c8fb4e Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Wed, 2 Jan 2019 14:40:23 +0100 Subject: [PATCH] [build] Add preliminary debian package build Add a (very) flimsical debian package build via Makefile ("make deb"). see #342 --- .gitignore | 1 - Makefile | 18 ++++++++++++++++++ build/debian/control | 5 +++++ build/debian/postinst | 5 +++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 Makefile create mode 100644 build/debian/control create mode 100755 build/debian/postinst diff --git a/.gitignore b/.gitignore index 577808b..724c296 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,6 @@ __pycache__/ # Distribution / packaging .Python env/ -build/ develop-eggs/ dist/ downloads/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b542958 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +DEBIAN_ROOT = build/debian/bumblebee-status/ + +deb: + mkdir -p $(DEBIAN_ROOT)/DEBIAN + mkdir -p $(DEBIAN_ROOT)/usr/share/bumblebee-status/modules + mkdir -p $(DEBIAN_ROOT)/usr/share/bumblebee-status/themes + cp build/debian/control $(DEBIAN_ROOT)/DEBIAN/ + cp bumblebee-status $(DEBIAN_ROOT)/usr/share/bumblebee-status/ + cp bumblebee/modules/*.py $(DEBIAN_ROOT)/usr/share/bumblebee-status/modules/ + cp -r themes/* $(DEBIAN_ROOT)/usr/share/bumblebee-status/themes + cp LICENSE $(DEBIAN_ROOT)/usr/share/bumblebee-status/ + dpkg-deb --build $(DEBIAN_ROOT) + cp build/debian/bumblebee-status.deb . + +clean: + rm -rf $(DEBIAN_ROOT) + rm -f build/debian/*.deb + rm -f *.deb diff --git a/build/debian/control b/build/debian/control new file mode 100644 index 0000000..02526ce --- /dev/null +++ b/build/debian/control @@ -0,0 +1,5 @@ +Package: bumblebee-status +Version: 0 +Maintainer: tobi-wan-kenobi +Architecture: all +Description: bumblebee-status is a modular, theme-able status line generator for the i3 window manager. diff --git a/build/debian/postinst b/build/debian/postinst new file mode 100755 index 0000000..640378b --- /dev/null +++ b/build/debian/postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +ln -s /usr/share/bumblebee-status/bumblebee-status /usr/local/bin/bumblebee-status + +