diff --git a/dist/deb/debian.changelog b/dist/deb/debian.changelog new file mode 100644 index 0000000..08157f0 --- /dev/null +++ b/dist/deb/debian.changelog @@ -0,0 +1,3 @@ +systray-x (0.0.1-1) unstable; urgency=low + + * Initial Release diff --git a/dist/deb/debian.compat b/dist/deb/debian.compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/dist/deb/debian.compat @@ -0,0 +1 @@ +5 diff --git a/dist/deb/debian.control b/dist/deb/debian.control new file mode 100644 index 0000000..d9cc475 --- /dev/null +++ b/dist/deb/debian.control @@ -0,0 +1,20 @@ +Source: systray-x +Section: misc +Priority: optional +Maintainer: Maxime Rijnders +Build-Depends: debhelper (>= 4.1.16), zip, qt5-default, qtbase5-dev, thunderbird + +Package: systray-x +Architecture: any +Depends: ${shlibs:Depends}, thunderbird +Description: SysTray-X is a system tray extension for Thunderbird 68+. + The add-on uses the WebExtension API's to control an external system + dependent system tray application. + The add-on and system tray application can do: + * custom new mail icon + * display number of unread mails + * show / hide Thunderbird (minimize) + * minimizing hides to tray + * minimize on startup + * to be implemented: start a new mail + * to be implemented: open the last used account diff --git a/dist/deb/debian.rules b/dist/deb/debian.rules new file mode 100644 index 0000000..15c59d1 --- /dev/null +++ b/dist/deb/debian.rules @@ -0,0 +1,94 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +#export DH_COMPAT=4 + +CFLAGS = -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + sed < app/config/linux/SysTray_X.json.template -e 's|SYSTRAY_X_PATH|/usr/bin/SysTray-X|' > SysTray_X.json + make + # --- end custom part for compiling + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + make clean || true + # --- end custom part for cleaning up + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package + # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/ + + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/bin + cp -f SysTray-X /usr/src/packages/BUILD/debian/systray-x/usr/bin/SysTray-X + + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/mozilla/native-messaging-hosts + cp -f SysTray_X.json /usr/src/packages/BUILD/debian/systray-x/usr/lib/mozilla/native-messaging-hosts/SysTray_X.json + + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions + cp -f systray-x.xpi /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi + # --- end custom part for installing + +# Build architecture-independent files here. +binary-indep: build install + # We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary installing diff --git a/dist/deb/systray-x.dsc b/dist/deb/systray-x.dsc new file mode 100644 index 0000000..a4209ba --- /dev/null +++ b/dist/deb/systray-x.dsc @@ -0,0 +1,7 @@ +Format: 1.0 +Source: systray-x +Version: 0 +Binary: SysTray-X +Maintainer: Maxime Rijnders +Architecture: any +Build-Depends: debhelper (>= 4.1.16), zip, qt5-default, qtbase5-dev, thunderbird