aboutsummaryrefslogtreecommitdiff
path: root/office/krop/krop.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/krop/krop.SlackBuild')
-rw-r--r--office/krop/krop.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/office/krop/krop.SlackBuild b/office/krop/krop.SlackBuild
index 582828c2c71f9..9c49d8e7cd1c2 100644
--- a/office/krop/krop.SlackBuild
+++ b/office/krop/krop.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=krop
-VERSION=${VERSION:-0.5.0}
+VERSION=${VERSION:-0.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,6 +69,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+sed -i 's/import sys.*/&\nsys.argv.append("--no-qt5")/' krop/config.py
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
python setup.py install --root=$PKG
@@ -79,8 +81,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/share/applications
install -m 0644 -o root -g root krop.desktop $PKG/usr/share/applications/
+mkdir -p $PKG/usr/man/man1
+gzip -c9 krop.1 > $PKG/usr/man/man1/krop.1.gz
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install