Skip to content

Commit

Permalink
Cleaned up and changed version numbers for release 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
codeThatThinks committed Apr 26, 2015
1 parent 165e872 commit a9cd498
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 3 deletions.
37 changes: 37 additions & 0 deletions arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Maintainer: Ian Glen <[email protected]>

__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"
}
61 changes: 61 additions & 0 deletions arch/mutate.install
Original file line number Diff line number Diff line change
@@ -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
}
20 changes: 19 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> Sun, 26 Apr 2015 17:50:00 -0500


* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>

Expand Down
2 changes: 1 addition & 1 deletion debian/mutate/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: mutate
Version: 2.0
Version: 2.4
Architecture: amd64
Maintainer: Wei Qiang <[email protected]>
Installed-Size: 900
Expand Down
11 changes: 10 additions & 1 deletion rpm/mutate.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%global name Mutate
%global version 2.3
%global version 2.4
%global release 0

Name: %{name}
Expand Down Expand Up @@ -53,5 +53,14 @@ rm -rf $RPM_BUILD_ROOT
/usr/share/applications/Mutate.desktop

%changelog
* Sun Apr 26 2015 Ian Glen <[email protected]> - 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 <[email protected]> - 2.3
- first spec version

0 comments on commit a9cd498

Please sign in to comment.