summaryrefslogtreecommitdiff
path: root/keyboard-leds-trayicons/debian
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard-leds-trayicons/debian')
-rw-r--r--keyboard-leds-trayicons/debian/README.Debian8
-rw-r--r--keyboard-leds-trayicons/debian/changelog12
-rw-r--r--keyboard-leds-trayicons/debian/compat1
-rw-r--r--keyboard-leds-trayicons/debian/control16
-rw-r--r--keyboard-leds-trayicons/debian/copyright22
-rw-r--r--keyboard-leds-trayicons/debian/keyboard-leds-trayicons+devuan.dsc14
-rw-r--r--keyboard-leds-trayicons/debian/keyboard-leds-trayicons.lintian-overrides4
-rw-r--r--keyboard-leds-trayicons/debian/make-dsc-for-obs.sh10
-rw-r--r--keyboard-leds-trayicons/debian/patches/series1
-rwxr-xr-xkeyboard-leds-trayicons/debian/rules58
-rw-r--r--keyboard-leds-trayicons/debian/source/format1
-rw-r--r--keyboard-leds-trayicons/debian/source/lintian-overrides2
-rw-r--r--keyboard-leds-trayicons/debian/source/local-options2
-rw-r--r--keyboard-leds-trayicons/debian/watch4
14 files changed, 155 insertions, 0 deletions
diff --git a/keyboard-leds-trayicons/debian/README.Debian b/keyboard-leds-trayicons/debian/README.Debian
new file mode 100644
index 0000000..8ce6c02
--- /dev/null
+++ b/keyboard-leds-trayicons/debian/README.Debian
@@ -0,0 +1,8 @@
+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 <bgstack15@gmail.com> 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..0ee9921
--- /dev/null
+++ b/keyboard-leds-trayicons/debian/changelog
@@ -0,0 +1,12 @@
+keyboard-leds-trayicons (0.0.2-1+devuan) obs; urgency=medium
+
+ * Add xdg autostart and menu icons
+ * Use Unix makefile
+
+ -- Ben Stack <bgstack15@gmail.com> Tue, 17 Mar 2020 10:17:18 -0400
+
+keyboard-leds-trayicons (0.0.1-1+devuan) obs; urgency=low
+
+ * Initial release.
+
+ -- Ben Stack <bgstack15@gmail.com> 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..b5a4c55
--- /dev/null
+++ b/keyboard-leds-trayicons/debian/control
@@ -0,0 +1,16 @@
+Source: keyboard-leds-trayicons
+Section: x11
+Priority: optional
+Maintainer: Ben Stack <bgstack15@gmail.com>
+Build-Depends: debhelper (>=12~),
+ go-md2man,
+ 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},
+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: <url://example.com>
+#
+# 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/keyboard-leds-trayicons+devuan.dsc b/keyboard-leds-trayicons/debian/keyboard-leds-trayicons+devuan.dsc
new file mode 100644
index 0000000..fddc007
--- /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.2-1+devuan
+Maintainer: Ben Stack <bgstack15@gmail.com>
+Homepage: https://gitlab.com/bgstack15/keyboard-leds-trayicons
+Standards-Version: 4.1.4
+Build-Depends: debhelper (>= 12~), go-md2man, graphicsmagick-imagemagick-compat
+Package-List:
+ keyboard-leds-trayicons deb x11 optional arch=all
+Files:
+00000000000000000000000000000000 1 keyboard-leds-trayicons.orig.tar.gz
+00000000000000000000000000000000 1 keyboard-leds-trayicons+devuan.debian.tar.xz
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..26d4024
--- /dev/null
+++ b/keyboard-leds-trayicons/debian/keyboard-leds-trayicons.lintian-overrides
@@ -0,0 +1,4 @@
+script-with-language-extension
+copyright-has-url-from-dh_make-boilerplate
+copyright-without-copyright-notice
+desktop-entry-uses-reserved-category
diff --git a/keyboard-leds-trayicons/debian/make-dsc-for-obs.sh b/keyboard-leds-trayicons/debian/make-dsc-for-obs.sh
new file mode 100644
index 0000000..088b548
--- /dev/null
+++ b/keyboard-leds-trayicons/debian/make-dsc-for-obs.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Goal: convert the fresh dsc file to a generic one for obs that omits version and checksum info on filenames
+# Use in debian/rules:
+# APPNAME=name-of-binary-package
+# override_dh_auto_build:
+# dh_auto_build
+# sh debian/make-dsc-for-obs.sh
+tf="../$( find .. -maxdepth 1 -name "${APPNAME}_*dsc" -printf '%T@ %f\n' | sort | tail -n1 | awk '{print $NF}' )"
+of="debian/$( basename "$( readlink -f "${tf}" )" | sed -r -e 's/_[0-9_\.]+[0-9_](-[0-9])?//;' )"
+sed -r -e '/Checksums-.{0,8}:\s*$/,/^Files/{/Files/!{d};}' -e 's/^ [^\s]{32}/ 00000000000000000000000000000000/;' "${tf}" | awk 'BEGIN{a=0;cmd="tr -d '[0-9_+]'"} a > 0 {$2="1";gsub(/_[0-9_\.]+[0-9_](-[0-9])?/,"");} /^Files/{a=1} {print}' > "${of}"
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..55ac4b8
--- /dev/null
+++ b/keyboard-leds-trayicons/debian/rules
@@ -0,0 +1,58 @@
+#!/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 APPNAME=keyboard-leds-trayicons
+export debuilddir="debian"
+export buildroot="${debuilddir}/${APPNAME}"
+export _datadir="/usr/share"
+export _bindir="/usr/bin"
+export _indir="/usr/share/icons/hicolor/scalable/status"
+
+%:
+ dh $@ --sourcedirectory=src
+
+override_dh_auto_build:
+ dh_auto_build
+ sh debian/make-dsc-for-obs.sh
+
+override_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
+ 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 -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
+
+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
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..2da37ed
--- /dev/null
+++ b/keyboard-leds-trayicons/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+file-without-copyright-information
+missing-license-paragraph-in-dep5-copyright
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.*
+
bgstack15