aboutsummaryrefslogtreecommitdiff
path: root/office/qute
diff options
context:
space:
mode:
Diffstat (limited to 'office/qute')
-rw-r--r--office/qute/qute.SlackBuild40
-rw-r--r--office/qute/qute.info8
2 files changed, 19 insertions, 29 deletions
diff --git a/office/qute/qute.SlackBuild b/office/qute/qute.SlackBuild
index 53fe684711cb..43ae47b40282 100644
--- a/office/qute/qute.SlackBuild
+++ b/office/qute/qute.SlackBuild
@@ -22,6 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220217 bkw: Modified by SlackBuilds.org:
+# - force ARCH to x86_64 since this is a prebuilt 64-bit binary.
+# - fix weird download filename (CGI params in the name).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qute
@@ -31,17 +35,9 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
+# 20220217 bkw: prebuilt binary for this platform only:
+ARCH=x86_64
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -51,27 +47,21 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
+# 20220217 bkw: depending on what was used to download the file, it
+# might have gibberish (CGI params) in the filename, or not. handle
+# either possibility.
+TARBALL=$CWD/$SRCNAM-$VERSION-$(uname | tr '[A-Z]' '[a-z]').tar.gz
+if [ ! -e "$TARBALL" ]; then
+ TARBALL="$( /bin/ls $TARBALL\?* | head -1 )"
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM
-tar xvf $CWD/$SRCNAM-$VERSION-$(uname | tr '[A-Z]' '[a-z]').tar.gz
+tar xvf $TARBALL
cd $SRCNAM
chown -R root:root .
find -L . \
diff --git a/office/qute/qute.info b/office/qute/qute.info
index 78f49be6b4a4..890d4593a123 100644
--- a/office/qute/qute.info
+++ b/office/qute/qute.info
@@ -1,10 +1,10 @@
PRGNAM="qute"
VERSION="0.4.1"
HOMEPAGE="https://github.com/fbreuer/qute-html5"
-DOWNLOAD="https://github.com/downloads/fbreuer/qute-html5/Qute-0.4.1-linux.tar.gz"
-MD5SUM="7a3a756285bb0c59d89e440e428b22e5"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/downloads/fbreuer/qute-html5/Qute-0.4.1-linux.tar.gz"
+MD5SUM_x86_64="7a3a756285bb0c59d89e440e428b22e5"
REQUIRES=""
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"