summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 12:39:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 12:39:32 +0000
commit001a1b5299cbdcccb7740cce5177d4f36e73281a (patch)
tree61dc94df0b5cfc8f12c1a4c8e14967af20fa4485 /debian/rules
parentAdding upstream version 1.3.2. (diff)
downloadpowerline-gitstatus-debian.tar.xz
powerline-gitstatus-debian.zip
Adding debian version 1.3.2-0+deb11u1.debian/1.3.2-0+deb11u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..cf6278e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=powerline-gitstatus
+
+%:
+ dh ${@} --buildsystem=pybuild --with python3
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf powerline_gitstatus.egg-info
+
+override_dh_auto_install:
+ dh_auto_install
+
+ # colorschemes/default.json
+ mkdir -p debian/powerline-gitstatus/usr/share/powerline/config_files/colorschemes
+ cp /usr/share/powerline/config_files/colorschemes/default.json debian/powerline-gitstatus/usr/share/powerline/config_files/colorschemes
+ patch -Np1 -i debian/local/colorschemes-default.patch
+
+ # themes/shell/default.json
+ mkdir -p debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell
+ cp /usr/share/powerline/config_files/themes/shell/default.json debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell
+ patch -Np1 -i debian/local/themes-shell-default.patch
+
+ # themes/shell/default_leftonly.json
+ mkdir -p debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell
+ cp /usr/share/powerline/config_files/themes/shell/default_leftonly.json debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell
+ patch -Np1 -i debian/local/themes-shell-default_leftonly.patch
+
+override_dh_gencontrol:
+ dh_gencontrol -- -Vbuilt-using="powerline (= $$(dpkg-query --show --showformat='$${source:Version}' powerline))" \
+ -Vpowerline:Version="(>= $$(dpkg-query --show --showformat='$${source:Version}' powerline)~)"