-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up and changed version numbers for release 2.4
- Loading branch information
1 parent
165e872
commit a9cd498
Showing
5 changed files
with
128 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
|
@@ -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 |