diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-06-18 11:50:08 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-06-23 01:14:05 +0700 |
commit | 648a4846a8709150bb8f4dac5a6cd8ff0b08035c (patch) | |
tree | 1fe8b20ad6219b91f61cb2029a5ac5f1a53d85ae /graphics/qcomicbook/qcomicbook.SlackBuild | |
parent | f22d176a9ab570d6a656b158abb4505765370b84 (diff) |
graphics/qcomicbook: Updated for version 0.9.1 (qt5-based).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/qcomicbook/qcomicbook.SlackBuild')
-rw-r--r-- | graphics/qcomicbook/qcomicbook.SlackBuild | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/graphics/qcomicbook/qcomicbook.SlackBuild b/graphics/qcomicbook/qcomicbook.SlackBuild index c81a58946ab87..44ca87d71f8fa 100644 --- a/graphics/qcomicbook/qcomicbook.SlackBuild +++ b/graphics/qcomicbook/qcomicbook.SlackBuild @@ -28,13 +28,14 @@ # revision date 2012/07/23 PRGNAM=qcomicbook -VERSION=${VERSION:-0.9.0} +SRCNAM=QComicBook +VERSION=${VERSION:-0.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -45,8 +46,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -61,17 +62,18 @@ fi set -e -rm -rf $TMP/$PRGNAM-$VERSION $PKG +rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP +rm -rf $SRCNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +cd $SRCNAM-$VERSION 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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Icon info in the desktop file should not have a file extension sed -i 's/\.png$//' data/qcomicbook.desktop @@ -95,12 +97,12 @@ make install DESTDIR=$PKG mv $PKG/usr/share/man $PKG/usr/man gzip -9 $PKG/usr/man/man1/$PRGNAM.1 -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS COPYING ChangeLog NEWS README THANKS TODO \ + AUTHORS COPYING ChangeLog README THANKS TODO \ $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |