[build] Add preliminary debian package build

Add a (very) flimsical debian package build via Makefile ("make deb").

see #342
This commit is contained in:
Tobias Witek 2019-01-02 14:40:23 +01:00
parent 238a234381
commit fc529e1d23
4 changed files with 28 additions and 1 deletions

1
.gitignore vendored
View file

@ -13,7 +13,6 @@ __pycache__/
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/

18
Makefile Normal file
View file

@ -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

5
build/debian/control Normal file
View file

@ -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.

5
build/debian/postinst Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
ln -s /usr/share/bumblebee-status/bumblebee-status /usr/local/bin/bumblebee-status