From a9cd498736a58964ea88a02683baf6d863ccf11c Mon Sep 17 00:00:00 2001 From: Ian Glen Date: Sun, 26 Apr 2015 17:55:00 -0400 Subject: [PATCH] Cleaned up and changed version numbers for release 2.4 --- arch/PKGBUILD | 37 ++++++++++++++++++++++ arch/mutate.install | 61 ++++++++++++++++++++++++++++++++++++ debian/changelog | 20 +++++++++++- debian/mutate/DEBIAN/control | 2 +- rpm/mutate.spec | 11 ++++++- 5 files changed, 128 insertions(+), 3 deletions(-) create mode 100644 arch/PKGBUILD create mode 100644 arch/mutate.install diff --git a/arch/PKGBUILD b/arch/PKGBUILD new file mode 100644 index 0000000..38b98e1 --- /dev/null +++ b/arch/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Ian Glen + +__pkgname=Mutate +_pkgname=mutate +pkgname=${_pkgname} +pkgver=2.4 +pkgrel=1 +pkgdesc='A simple launcher inspired by Alfred.' +arch=('i686' 'x86_64') +url="https://github.com/qdore/$__pkgname" +depends=('fcitx-qt5' 'qt5-base' 'qt5-x11extras' 'boost' 'gtk2' 'icu' +'libxkbcommon-x11' 'libsm') +provides=("${_pkgname}") +conflicts=("${_pkgname}") +source=("https://github.com/qdore/Mutate/archive/v2.4.tar.gz") +sha512sums=('SKIP') +install=${_pkgname}.install +license=('MIT') + +build() { + cd "$srcdir/$__pkgname/src" + qmake-qt5 PREFIX=$pkgdir/usr/bin + make +} + +package() { + cd "$srcdir/$__pkgname/src" + make DESTDIR="$pkgdir" install + mkdir -p "$pkgdir/usr/share/doc/mutate/config" + cp -R "$srcdir/$__pkgname/config" "$pkgdir/usr/share/doc/mutate/" + chmod -R a+x "$pkgdir/usr/share/doc/mutate/config/scripts" + chmod -R a+w "$pkgdir/usr/share/doc/mutate/config" + mkdir -p "$pkgdir/usr/share/icons" + cp "$srcdir/$__pkgname/info/mutate.png" "$pkgdir/usr/share/icons" + mkdir -p "$pkgdir/usr/share/applications" + cp "$srcdir/$__pkgname/info/Mutate.desktop" "$pkgdir/usr/share/applications" +} diff --git a/arch/mutate.install b/arch/mutate.install new file mode 100644 index 0000000..33767cf --- /dev/null +++ b/arch/mutate.install @@ -0,0 +1,61 @@ +pre_upgrade() { + # backup scripts dir to prevent overwriting user scripts + for i in `ls /home`; do + cp -ar /home/$i/.config/Mutate /home/$i/.config/Mutate.$1 + mv /home/$i/.config/Mutate.$1 /home/$i/.config/Mutate/ + done + + rm -r /home/$i/.config/Mutate/scripts + rm /home/$i/.config/Mutate/config.ini +} + +post_upgrade() { + # copy config files to home directories + for i in `ls /home`; do + mkdir -p /home/$i/.config/Mutate + cp -a /usr/share/doc/mutate/config/* /home/$i/.config/Mutate + cat /usr/share/doc/mutate/config/config.ini | sed "s#{home}#`echo /home/$i`#g" > /home/$i/.config/Mutate/config.ini + chmod -R a+x /home/$i/.config/Mutate/scripts + chmod -R a+w /home/$i/.config/Mutate + done + + mv /home/$i/.config/Mutate/config.ini /home/$i/.config/Mutate/config.new.ini + cp -a /home/$i/.config/Mutate/Mutate.$1/config.ini /home/$i/.config/Mutate/config.ini + + echo + echo The Mutate config directory has been updated. The current version was backed up to ~/.config/Mutate/Mutate.$1 + echo The new config.ini was installed at ~/.config/Mutate/config.new.ini -- rename it to config.ini to switch to it. + echo +} +post_install() { + # copy config files to home directories + for i in `ls /home`; do + mkdir -p /home/$i/.config/Mutate + cp -a /usr/share/doc/mutate/config/* /home/$i/.config/Mutate + cat /usr/share/doc/mutate/config/config.ini | sed "s#{home}#`echo /home/$i`#g" > /home/$i/.config/Mutate/config.ini + chmod -R a+x /home/$i/.config/Mutate/scripts + chmod -R a+w /home/$i/.config/Mutate + done + + # enable fcitx modules for QT + # check if they already are enabled + fcitx="False" + for i in `cat /etc/profile`;do + if [ "$i" = "QT5_IM_MODULE=fcitx" ] ;then + fcitx="True" + fi + done + + # if not, enable put it in /etc/profile + if [ "$fcitx" = "False" ];then + echo "export QT5_IM_MODULE=fcitx" >> /etc/profile + echo 'export XMODIFIERS="@im=fcitx"' >> /etc/profile + fi +} + +post_remove() { + rm -r /usr/share/doc/mutate/config/scripts + rm /usr/share/doc/mutate/config/config.ini + rmdir /usr/share/doc/mutate/config + rmdir /usr/share/doc/mutate +} diff --git a/debian/changelog b/debian/changelog index 002fcfc..6084065 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,22 @@ -mutate (2.3~precise~NoolsLab.com) precise; urgency=low +mutate (2.4~precise~NoolsLab.com) precise; urgency=low + + * Fixed issue where Python scripts wouldn't run on systems with + Python 3 installed as default + + * Added Google Chrome bookmarks script + + * Added script that shows running processes with top + + * Fixed bug where temporary files weren't removed when killed + + * Meta key can now be assigned as part of the keyboard shortcut + + * Added quit command + + * Minor user interface improvements + + -- Ian Glen Sun, 26 Apr 2015 17:50:00 -0500 + * Initial release (Closes: #nnnn) diff --git a/debian/mutate/DEBIAN/control b/debian/mutate/DEBIAN/control index 7e9725b..e1f585c 100644 --- a/debian/mutate/DEBIAN/control +++ b/debian/mutate/DEBIAN/control @@ -1,5 +1,5 @@ Package: mutate -Version: 2.0 +Version: 2.4 Architecture: amd64 Maintainer: Wei Qiang Installed-Size: 900 diff --git a/rpm/mutate.spec b/rpm/mutate.spec index fd89826..67f3657 100644 --- a/rpm/mutate.spec +++ b/rpm/mutate.spec @@ -1,5 +1,5 @@ %global name Mutate -%global version 2.3 +%global version 2.4 %global release 0 Name: %{name} @@ -53,5 +53,14 @@ rm -rf $RPM_BUILD_ROOT /usr/share/applications/Mutate.desktop %changelog +* Sun Apr 26 2015 Ian Glen - 2.4 +- Fixed issue where Python scripts wouldn't run on systems with Python 3 installed as default +- Added Google Chrome bookmarks script +- Added script that shows running processes with top +- Fixed bug where temporary files weren't removed when killed +- Meta key can now be assigned as part of the keyboard shortcut +- Added quit command +- Minor user interface improvements + * Fri Jan 30 2015 Anatoliy Guskov - 2.3 - first spec version