summaryrefslogtreecommitdiff
path: root/keyboard-leds-trayicons/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard-leds-trayicons/debian/rules')
-rwxr-xr-xkeyboard-leds-trayicons/debian/rules17
1 files changed, 13 insertions, 4 deletions
diff --git a/keyboard-leds-trayicons/debian/rules b/keyboard-leds-trayicons/debian/rules
index 71c2727..55ac4b8 100755
--- a/keyboard-leds-trayicons/debian/rules
+++ b/keyboard-leds-trayicons/debian/rules
@@ -5,18 +5,22 @@
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-export name=keyboard-leds-trayicons
+export APPNAME=keyboard-leds-trayicons
export debuilddir="debian"
-export buildroot="${debuilddir}/${name}"
+export buildroot="${debuilddir}/${APPNAME}"
export _datadir="/usr/share"
export _bindir="/usr/bin"
export _indir="/usr/share/icons/hicolor/scalable/status"
%:
- dh $@
+ dh $@ --sourcedirectory=src
+
+override_dh_auto_build:
+ dh_auto_build
+ sh debian/make-dsc-for-obs.sh
override_dh_auto_install:
- dh_auto_install
+ dh_auto_install -- prefix=/usr DEFAULTDIR='$$(DESTDIR)/etc/default'
mkdir -p ${buildroot}${_datadir}/icons/hicolor/16x16/status
mkdir -p ${buildroot}${_datadir}/icons/hicolor/32x32/status
@@ -47,3 +51,8 @@ override_dh_auto_install:
convert -filter Lanczos -resize 48x48 -background none -antialias src${_indir}/numlock-off.svg ${buildroot}${_datadir}/icons/hicolor/48x48/status/numlock-off.png
convert -filter Lanczos -resize 64x64 -background none -antialias src${_indir}/numlock-off.svg ${buildroot}${_datadir}/icons/hicolor/64x64/status/numlock-off.png
convert -filter Lanczos -resize 128x128 -background none -antialias src${_indir}/numlock-off.svg ${buildroot}${_datadir}/icons/hicolor/128x128/status/numlock-off.png
+
+override_dh_gencontrol:
+ printf "misc:Depends=" > debian/${APPNAME}.substvars
+ make -C src deplist DISTRO=devuan SEPARATOR=',' | grep -vE 'make\[[0-9]' >> debian/${APPNAME}.substvars
+ dh_gencontrol
bgstack15