summaryrefslogtreecommitdiff
path: root/keyboard-leds-trayicons/debian/rules
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-03-17 14:55:49 -0400
committerB Stack <bgstack15@gmail.com>2020-03-17 14:55:49 -0400
commit795dac999ebdd330f34aaa776d3e0f305e5fa017 (patch)
treeced92bb5da4d4cebbbb027354d3c4b135fd85d7a /keyboard-leds-trayicons/debian/rules
parentMerge branch 'waterfox-bump' into 'master' (diff)
downloadstackrpms-795dac999ebdd330f34aaa776d3e0f305e5fa017.tar.gz
stackrpms-795dac999ebdd330f34aaa776d3e0f305e5fa017.tar.bz2
stackrpms-795dac999ebdd330f34aaa776d3e0f305e5fa017.zip
keyboard-leds-trayicons 0.0.2: upstream Makefile
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