diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-17 15:33:17 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-19 12:09:26 +0700 |
commit | b0906402a162e62d802bd89a19e0303fa506f088 (patch) | |
tree | f68cb25d8a893fd1152645dde00f28bc4f69e4f2 /office | |
parent | 6da1a00e59f87938637f4dcb29f1731cdd1692d8 (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')
-rw-r--r-- | office/qute/qute.SlackBuild | 40 | ||||
-rw-r--r-- | office/qute/qute.info | 8 |
2 files changed, 19 insertions, 29 deletions
diff --git a/office/qute/qute.SlackBuild b/office/qute/qute.SlackBuild index 53fe684711cbc..43ae47b40282b 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 78f49be6b4a45..890d4593a1239 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" |