aboutsummaryrefslogtreecommitdiff
path: root/office/qute/qute.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-17 15:33:17 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-19 12:09:26 +0700
commitb0906402a162e62d802bd89a19e0303fa506f088 (patch)
treef68cb25d8a893fd1152645dde00f28bc4f69e4f2 /office/qute/qute.SlackBuild
parent6da1a00e59f87938637f4dcb29f1731cdd1692d8 (diff)
office/qute: Fix ARCH, download filename.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/qute/qute.SlackBuild')
-rw-r--r--office/qute/qute.SlackBuild40
1 files changed, 15 insertions, 25 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 . \