summaryrefslogtreecommitdiffstats
path: root/office/goldendict/goldendict.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/goldendict/goldendict.SlackBuild')
-rw-r--r--office/goldendict/goldendict.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/office/goldendict/goldendict.SlackBuild b/office/goldendict/goldendict.SlackBuild
index 2d1e6b478f..71a698c559 100644
--- a/office/goldendict/goldendict.SlackBuild
+++ b/office/goldendict/goldendict.SlackBuild
@@ -53,9 +53,16 @@ cd $TMP
rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
cd $PRGNAM-$SRCVER
-chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-$(type -p qmake-qt5 || echo qmake) PREFIX=/usr \
+# archlinux, thanks for all the patches!
+for i in $CWD/patches/* ; do patch -p1 < $i ; done
+
+qmake-qt5 PREFIX=/usr \
CONFIG+=no_epwing_support \
CONFIG+=zim_support \
DISABLE_INTERNAL_PLAYER=$DISABLE_INTERNAL_PLAYER