From e05100f9b0aecc05515dc1a953ee030486179717 Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 13 Feb 2020 20:03:50 -0500 Subject: add keyboard-leds-trayicons --- keyboard-leds-trayicons/debian/README.Debian | 5 +++ keyboard-leds-trayicons/debian/changelog | 5 +++ keyboard-leds-trayicons/debian/compat | 1 + keyboard-leds-trayicons/debian/control | 18 ++++++++ keyboard-leds-trayicons/debian/copyright | 22 ++++++++++ keyboard-leds-trayicons/debian/docs | 1 + keyboard-leds-trayicons/debian/install | 3 ++ .../keyboard-leds-trayicons.lintian-overrides | 1 + .../debian/keyboard-leds-trayicons_devuan.dsc | 14 +++++++ keyboard-leds-trayicons/debian/patches/series | 1 + keyboard-leds-trayicons/debian/rules | 49 ++++++++++++++++++++++ keyboard-leds-trayicons/debian/source/format | 1 + .../debian/source/lintian-overrides | 1 + .../debian/source/local-options | 2 + keyboard-leds-trayicons/debian/watch | 4 ++ 15 files changed, 128 insertions(+) create mode 100644 keyboard-leds-trayicons/debian/README.Debian create mode 100644 keyboard-leds-trayicons/debian/changelog create mode 100644 keyboard-leds-trayicons/debian/compat create mode 100644 keyboard-leds-trayicons/debian/control create mode 100644 keyboard-leds-trayicons/debian/copyright create mode 100644 keyboard-leds-trayicons/debian/docs create mode 100644 keyboard-leds-trayicons/debian/install create mode 100644 keyboard-leds-trayicons/debian/keyboard-leds-trayicons.lintian-overrides create mode 100644 keyboard-leds-trayicons/debian/keyboard-leds-trayicons_devuan.dsc create mode 100644 keyboard-leds-trayicons/debian/patches/series create mode 100755 keyboard-leds-trayicons/debian/rules create mode 100644 keyboard-leds-trayicons/debian/source/format create mode 100644 keyboard-leds-trayicons/debian/source/lintian-overrides create mode 100644 keyboard-leds-trayicons/debian/source/local-options create mode 100644 keyboard-leds-trayicons/debian/watch (limited to 'keyboard-leds-trayicons') diff --git a/keyboard-leds-trayicons/debian/README.Debian b/keyboard-leds-trayicons/debian/README.Debian new file mode 100644 index 0000000..6d7a870 --- /dev/null +++ b/keyboard-leds-trayicons/debian/README.Debian @@ -0,0 +1,5 @@ +keyboard-leds-trayicons for Devuan + +No changes. + + -- Ben Stack Thu, 13 Feb 2020 19:27:59 -0500 diff --git a/keyboard-leds-trayicons/debian/changelog b/keyboard-leds-trayicons/debian/changelog new file mode 100644 index 0000000..b888959 --- /dev/null +++ b/keyboard-leds-trayicons/debian/changelog @@ -0,0 +1,5 @@ +keyboard-leds-trayicons (0.0.1-1+devuan) obs; urgency=low + + * Initial release. + + -- Ben Stack Thu, 13 Feb 2020 19:27:59 -0500 diff --git a/keyboard-leds-trayicons/debian/compat b/keyboard-leds-trayicons/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/keyboard-leds-trayicons/debian/compat @@ -0,0 +1 @@ +12 diff --git a/keyboard-leds-trayicons/debian/control b/keyboard-leds-trayicons/debian/control new file mode 100644 index 0000000..4dff3a7 --- /dev/null +++ b/keyboard-leds-trayicons/debian/control @@ -0,0 +1,18 @@ +Source: keyboard-leds-trayicons +Section: x11 +Priority: optional +Maintainer: Ben Stack +Build-Depends: debhelper (>=12~), + graphicsmagick-imagemagick-compat +Standards-Version: 4.1.4 +Homepage: https://gitlab.com/bgstack15/keyboard-leds-trayicons + +Package: keyboard-leds-trayicons +Architecture: all +Multi-Arch: foreign +Depends: ${misc:Depends}, ${shlibs:Depends}, + mktrayicon, + mawk | gawk, + x11-xserver-utils +Description: show keyboard leds on system tray + Show capslock and numlock indicator icons on system tray. diff --git a/keyboard-leds-trayicons/debian/copyright b/keyboard-leds-trayicons/debian/copyright new file mode 100644 index 0000000..4685f26 --- /dev/null +++ b/keyboard-leds-trayicons/debian/copyright @@ -0,0 +1,22 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: keyboard-leds-trayicons +Source: +# +# Please double check copyright with the licensecheck(1) command. + +Files: README.md + src/etc/keyboard-leds-trayicons.conf + src/usr/bin/keyboard-leds-trayicons.sh +Copyright: __NO_COPYRIGHT_NOR_LICENSE__ +License: __NO_COPYRIGHT_NOR_LICENSE__ + +#---------------------------------------------------------------------------- +# xml and html files (skipped): +# src/usr/share/icons/hicolor/scalable/status/numlock-off.svg +# src/usr/share/icons/hicolor/scalable/status/numlock-on.svg +# src/usr/share/icons/hicolor/scalable/status/capslock-off.svg +# src/usr/share/icons/hicolor/scalable/status/capslock-on.svg + +#---------------------------------------------------------------------------- +# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following +# license/copyright files. diff --git a/keyboard-leds-trayicons/debian/docs b/keyboard-leds-trayicons/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/keyboard-leds-trayicons/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/keyboard-leds-trayicons/debian/install b/keyboard-leds-trayicons/debian/install new file mode 100644 index 0000000..2dfcee8 --- /dev/null +++ b/keyboard-leds-trayicons/debian/install @@ -0,0 +1,3 @@ +src/etc/* /etc +src/usr/bin/* /usr/bin +src/usr/share/icons/hicolor/scalable/status/* /usr/share/icons/hicolor/scalable/status diff --git a/keyboard-leds-trayicons/debian/keyboard-leds-trayicons.lintian-overrides b/keyboard-leds-trayicons/debian/keyboard-leds-trayicons.lintian-overrides new file mode 100644 index 0000000..bc20712 --- /dev/null +++ b/keyboard-leds-trayicons/debian/keyboard-leds-trayicons.lintian-overrides @@ -0,0 +1 @@ +script-with-language-extension diff --git a/keyboard-leds-trayicons/debian/keyboard-leds-trayicons_devuan.dsc b/keyboard-leds-trayicons/debian/keyboard-leds-trayicons_devuan.dsc new file mode 100644 index 0000000..62cf13c --- /dev/null +++ b/keyboard-leds-trayicons/debian/keyboard-leds-trayicons_devuan.dsc @@ -0,0 +1,14 @@ +Format: 3.0 (quilt) +Source: keyboard-leds-trayicons +Binary: keyboard-leds-trayicons +Architecture: all +Version: 0.0.1-1+devuan +Maintainer: Ben Stack +Homepage: https://gitlab.com/bgstack15/keyboard-leds-trayicons +Standards-Version: 4.1.4 +Build-Depends: debhelper (>= 12~), graphicsmagick-imagemagick-compat +Package-List: + keyboard-leds-trayicons deb x11 optional arch=all +Files: + 00000000000000000000000000000000 1 keyboard-leds-trayicons_0.0.1.orig.tar.gz + 00000000000000000000000000000000 1 keyboard-leds-trayicons_0.0.1-1+devuan.debian.tar.xz diff --git a/keyboard-leds-trayicons/debian/patches/series b/keyboard-leds-trayicons/debian/patches/series new file mode 100644 index 0000000..4a97dfa --- /dev/null +++ b/keyboard-leds-trayicons/debian/patches/series @@ -0,0 +1 @@ +# You must remove unused comment lines for the released package. diff --git a/keyboard-leds-trayicons/debian/rules b/keyboard-leds-trayicons/debian/rules new file mode 100755 index 0000000..e871414 --- /dev/null +++ b/keyboard-leds-trayicons/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f +# You must remove unused comment lines for the released package. +#export DH_VERBOSE = 1 +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +export name=keyboard-leds-trayicons +export debuilddir="debian" +export buildroot="${debuilddir}/${name}" +export _datadir="/usr/share" +export _bindir="/usr/bin" +export _indir="/usr/share/icons/hicolor/scalable/status" + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install + + mkdir -p ${buildroot}${_datadir}/icons/hicolor/16x16/status + mkdir -p ${buildroot}${_datadir}/icons/hicolor/32x32/status + mkdir -p ${buildroot}${_datadir}/icons/hicolor/48x48/status + mkdir -p ${buildroot}${_datadir}/icons/hicolor/64x64/status + mkdir -p ${buildroot}${_datadir}/icons/hicolor/128x128/status + + convert src${_indir}/capslock-on.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/capslock-on.png + convert src${_indir}/capslock-on.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/capslock-on.png + convert src${_indir}/capslock-on.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/capslock-on.png + convert src${_indir}/capslock-on.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/capslock-on.png + convert src${_indir}/capslock-on.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/capslock-on.png + + convert src${_indir}/capslock-off.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/capslock-off.png + convert src${_indir}/capslock-off.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/capslock-off.png + convert src${_indir}/capslock-off.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/capslock-off.png + convert src${_indir}/capslock-off.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/capslock-off.png + convert src${_indir}/capslock-off.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/capslock-off.png + + convert src${_indir}/numlock-on.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/numlock-on.png + convert src${_indir}/numlock-on.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/numlock-on.png + convert src${_indir}/numlock-on.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/numlock-on.png + convert src${_indir}/numlock-on.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/numlock-on.png + convert src${_indir}/numlock-on.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/numlock-on.png + + convert src${_indir}/numlock-off.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/numlock-off.png + convert src${_indir}/numlock-off.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/numlock-off.png + convert src${_indir}/numlock-off.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/numlock-off.png + convert src${_indir}/numlock-off.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/numlock-off.png + convert src${_indir}/numlock-off.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/numlock-off.png diff --git a/keyboard-leds-trayicons/debian/source/format b/keyboard-leds-trayicons/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/keyboard-leds-trayicons/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/keyboard-leds-trayicons/debian/source/lintian-overrides b/keyboard-leds-trayicons/debian/source/lintian-overrides new file mode 100644 index 0000000..aa10b71 --- /dev/null +++ b/keyboard-leds-trayicons/debian/source/lintian-overrides @@ -0,0 +1 @@ +file-without-copyright-information diff --git a/keyboard-leds-trayicons/debian/source/local-options b/keyboard-leds-trayicons/debian/source/local-options new file mode 100644 index 0000000..00131ee --- /dev/null +++ b/keyboard-leds-trayicons/debian/source/local-options @@ -0,0 +1,2 @@ +#abort-on-upstream-changes +#unapply-patches diff --git a/keyboard-leds-trayicons/debian/watch b/keyboard-leds-trayicons/debian/watch new file mode 100644 index 0000000..8c60b19 --- /dev/null +++ b/keyboard-leds-trayicons/debian/watch @@ -0,0 +1,4 @@ +# You must remove unused comment lines for the released package. +version=4 +https://gitlab.com/bgstack15/keyboard-leds-trayicons/tags?sort=updated_desc .*/archive/(\d\S+)/.*\.tar\.gz.* + -- cgit From a99b39086e7ccc1c95c739c2a55ebd0ba5084d71 Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 13 Feb 2020 20:31:38 -0500 Subject: fix icon transparency --- keyboard-leds-trayicons/debian/README.Debian | 3 ++ keyboard-leds-trayicons/debian/rules | 46 ++++++++++++++-------------- 2 files changed, 26 insertions(+), 23 deletions(-) (limited to 'keyboard-leds-trayicons') diff --git a/keyboard-leds-trayicons/debian/README.Debian b/keyboard-leds-trayicons/debian/README.Debian index 6d7a870..8ce6c02 100644 --- a/keyboard-leds-trayicons/debian/README.Debian +++ b/keyboard-leds-trayicons/debian/README.Debian @@ -2,4 +2,7 @@ keyboard-leds-trayicons for Devuan No changes. +References: + convert svg to png with transparency; order of flags https://stackoverflow.com/questions/9530524/convert-svg-to-transparent-png-with-antialiasing-using-imagemagick#comment46053012_18579465 + -- Ben Stack Thu, 13 Feb 2020 19:27:59 -0500 diff --git a/keyboard-leds-trayicons/debian/rules b/keyboard-leds-trayicons/debian/rules index e871414..71c2727 100755 --- a/keyboard-leds-trayicons/debian/rules +++ b/keyboard-leds-trayicons/debian/rules @@ -24,26 +24,26 @@ override_dh_auto_install: mkdir -p ${buildroot}${_datadir}/icons/hicolor/64x64/status mkdir -p ${buildroot}${_datadir}/icons/hicolor/128x128/status - convert src${_indir}/capslock-on.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/capslock-on.png - convert src${_indir}/capslock-on.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/capslock-on.png - convert src${_indir}/capslock-on.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/capslock-on.png - convert src${_indir}/capslock-on.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/capslock-on.png - convert src${_indir}/capslock-on.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/capslock-on.png - - convert src${_indir}/capslock-off.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/capslock-off.png - convert src${_indir}/capslock-off.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/capslock-off.png - convert src${_indir}/capslock-off.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/capslock-off.png - convert src${_indir}/capslock-off.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/capslock-off.png - convert src${_indir}/capslock-off.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/capslock-off.png - - convert src${_indir}/numlock-on.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/numlock-on.png - convert src${_indir}/numlock-on.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/numlock-on.png - convert src${_indir}/numlock-on.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/numlock-on.png - convert src${_indir}/numlock-on.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/numlock-on.png - convert src${_indir}/numlock-on.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/numlock-on.png - - convert src${_indir}/numlock-off.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/status/numlock-off.png - convert src${_indir}/numlock-off.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/status/numlock-off.png - convert src${_indir}/numlock-off.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/status/numlock-off.png - convert src${_indir}/numlock-off.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/status/numlock-off.png - convert src${_indir}/numlock-off.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/status/numlock-off.png + convert -filter Lanczos -resize 16x16 -background none -antialias src${_indir}/capslock-on.svg ${buildroot}${_datadir}/icons/hicolor/16x16/status/capslock-on.png + convert -filter Lanczos -resize 32x32 -background none -antialias src${_indir}/capslock-on.svg ${buildroot}${_datadir}/icons/hicolor/32x32/status/capslock-on.png + convert -filter Lanczos -resize 48x48 -background none -antialias src${_indir}/capslock-on.svg ${buildroot}${_datadir}/icons/hicolor/48x48/status/capslock-on.png + convert -filter Lanczos -resize 64x64 -background none -antialias src${_indir}/capslock-on.svg ${buildroot}${_datadir}/icons/hicolor/64x64/status/capslock-on.png + convert -filter Lanczos -resize 128x128 -background none -antialias src${_indir}/capslock-on.svg ${buildroot}${_datadir}/icons/hicolor/128x128/status/capslock-on.png + + convert -filter Lanczos -resize 16x16 -background none -antialias src${_indir}/capslock-off.svg ${buildroot}${_datadir}/icons/hicolor/16x16/status/capslock-off.png + convert -filter Lanczos -resize 32x32 -background none -antialias src${_indir}/capslock-off.svg ${buildroot}${_datadir}/icons/hicolor/32x32/status/capslock-off.png + convert -filter Lanczos -resize 48x48 -background none -antialias src${_indir}/capslock-off.svg ${buildroot}${_datadir}/icons/hicolor/48x48/status/capslock-off.png + convert -filter Lanczos -resize 64x64 -background none -antialias src${_indir}/capslock-off.svg ${buildroot}${_datadir}/icons/hicolor/64x64/status/capslock-off.png + convert -filter Lanczos -resize 128x128 -background none -antialias src${_indir}/capslock-off.svg ${buildroot}${_datadir}/icons/hicolor/128x128/status/capslock-off.png + + convert -filter Lanczos -resize 16x16 -background none -antialias src${_indir}/numlock-on.svg ${buildroot}${_datadir}/icons/hicolor/16x16/status/numlock-on.png + convert -filter Lanczos -resize 32x32 -background none -antialias src${_indir}/numlock-on.svg ${buildroot}${_datadir}/icons/hicolor/32x32/status/numlock-on.png + convert -filter Lanczos -resize 48x48 -background none -antialias src${_indir}/numlock-on.svg ${buildroot}${_datadir}/icons/hicolor/48x48/status/numlock-on.png + convert -filter Lanczos -resize 64x64 -background none -antialias src${_indir}/numlock-on.svg ${buildroot}${_datadir}/icons/hicolor/64x64/status/numlock-on.png + convert -filter Lanczos -resize 128x128 -background none -antialias src${_indir}/numlock-on.svg ${buildroot}${_datadir}/icons/hicolor/128x128/status/numlock-on.png + + convert -filter Lanczos -resize 16x16 -background none -antialias src${_indir}/numlock-off.svg ${buildroot}${_datadir}/icons/hicolor/16x16/status/numlock-off.png + convert -filter Lanczos -resize 32x32 -background none -antialias src${_indir}/numlock-off.svg ${buildroot}${_datadir}/icons/hicolor/32x32/status/numlock-off.png + 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 -- cgit