guake: fix INSTALL/REMOVE scripts.

This commit is contained in:
maxice8 2018-08-26 15:42:26 -03:00
parent 06afda0416
commit f72c6b0efd
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
3 changed files with 9 additions and 9 deletions

View file

@ -1,5 +1,5 @@
case "$ACTION" in
post)
glib-compile-schemas /usr/share/guake/data
glib-compile-schemas usr/share/guake/data
;;
esac

View file

@ -1,6 +1,6 @@
case "$ACTION" in
pre)
if [ -f /usr/share/guake/data/gschemas.compiled ]; then
rm -rf /usr/share/guake/data/gschemas.compiled
if [ -f usr/share/guake/data/gschemas.compiled ]; then
rm -rf usr/share/guake/data/gschemas.compiled
fi
esac

View file

@ -1,7 +1,7 @@
# Template file for 'guake'
pkgname=guake
version=3.3.2
revision=1
revision=2
noarch=yes
build_style=python3-module
pycompile_module="guake"
@ -22,6 +22,11 @@ pre_build() {
make generate-paths generate-mo
}
do_check() {
sed -i 's/from mock/from unittest.mock/g' guake/tests/test_quick_open.py
make test
}
pre_install() {
export PBR_VERSION=4.0.4
make prefix=/usr DESTDIR=${DESTDIR} install-locale
@ -37,8 +42,3 @@ post_install() {
ln -s ../guake/data/pixmaps/guake.png \
${DESTDIR}/usr/share/pixmaps/guake.png
}
do_check() {
sed -i 's/from mock/from unittest.mock/g' guake/tests/test_quick_open.py
make test
}