From dba8ce3b9ca24c142c9af111231ff3536928b880 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:58:56 +0100 Subject: [PATCH] added xdg autostart file [release 0.1.svn20110124-2mamba;Fri Feb 04 2011] --- README.md | 2 + matchbox-keyboard.desktop | 7 ++++ matchbox-keyboard.spec | 78 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 matchbox-keyboard.desktop create mode 100644 matchbox-keyboard.spec diff --git a/README.md b/README.md index 460ebab..c7ea685 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # matchbox-keyboard +matchbox-keyboard is a lightweight software or ‘virtual’ keyboard for X improving much the original ‘xkbd’. Features include easy flexible XML configuration of layouts, international support, low footprint and few dependencies. It also scales to larger displays much better than the original xkbd. + diff --git a/matchbox-keyboard.desktop b/matchbox-keyboard.desktop new file mode 100644 index 0000000..f9a661b --- /dev/null +++ b/matchbox-keyboard.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Matchbox Keyboard +Icon=matchbox-keyboard +Exec=matchbox-keyboard -d +Terminal=false +Type=Application +X-GNOME-Autostart-enabled=true diff --git a/matchbox-keyboard.spec b/matchbox-keyboard.spec new file mode 100644 index 0000000..9449933 --- /dev/null +++ b/matchbox-keyboard.spec @@ -0,0 +1,78 @@ +Name: matchbox-keyboard +Version: 0.1.svn20110124 +Release: 2mamba +Summary: A lightweight software or ‘virtual’ keyboard for X improving much the original ‘xkbd’ +Group: Graphical Desktop/Applications/Utilities +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://matchbox-project.org/?p=1 +# svn co http://svn.o-hand.com/repos/matchbox/trunk matchbox +# make dist +Source: http://matchbox-project.org/sources/matchbox-keyboard/%{version}/matchbox-keyboard-%{version}.tar.gz +Source1: matchbox-keyboard.desktop +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libexpat-devel +BuildRequires: libfakekey-devel +BuildRequires: libX11-devel +BuildRequires: libXft-devel +BuildRequires: libXtst-devel +## AUTOBUILDREQ-END +Requires(post):libgtk +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +matchbox-keyboard is a lightweight software or ‘virtual’ keyboard for X improving much the original ‘xkbd’. Features include easy flexible XML configuration of layouts, international support, low footprint and few dependencies. It also scales to larger displays much better than the original xkbd. + +%prep +%setup -q -n %{name}-0.1 + +%build +%configure \ + --enable-cairo \ + --enable-gtk-im +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall +install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/autostart/matchbox-keyboard.desktop + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +%{_bindir}/gtk-query-immodules-2.0 \ + > %{_sysconfdir}/gtk-2.0/gtk.immodules +: + +%postun +%{_bindir}/gtk-query-immodules-2.0 \ + > %{_sysconfdir}/gtk-2.0/gtk.immodules +: + +%files +%defattr(-,root,root) +%{_sysconfdir}/xdg/autostart/matchbox-keyboard.desktop +%{_bindir}/matchbox-keyboard +%{_datadir}/applications/inputmethods/matchbox-keyboard.desktop +%{_datadir}/matchbox-keyboard/keyboard*.xml +%{_datadir}/pixmaps/matchbox-keyboard.png +%{_libdir}/gtk-2.0/*/immodules/libmb-im-invoker.la +%{_libdir}/gtk-2.0/*/immodules/libmb-im-invoker.so +%doc AUTHORS COPYING ChangeLog README + +%changelog +* Fri Feb 04 2011 Silvan Calarco 0.1.svn20110124-2mamba +- added xdg autostart file + +* Mon Jan 24 2011 Silvan Calarco 0.1.svn20110124-1mamba +- update to 0.1.svn20110124 + +* Mon Jan 24 2011 Silvan Calarco 0.1-2mamba +- rebuilt with cairo support enabled + +* Fri Jan 14 2011 Silvan Calarco 0.1-1mamba +- package created by autospec