From 9a7688d56afb84a4619a088de98ba78ac5f996b5 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Mon, 17 May 2021 19:12:54 +0000 Subject: Mon May 17 19:12:54 UTC 2021 l/libusb-compat-0.1.7-x86_64-1.txz: Upgraded. xap/mozilla-thunderbird-78.10.2-x86_64-1.txz: Upgraded. This release contains security fixes and improvements. For more information, see: https://www.mozilla.org/en-US/thunderbird/78.10.2/releasenotes/ (* Security fix *) extra/fltk/fltk-1.3.6-x86_64-1.txz: Upgraded. --- extra/source/fltk/fltk.SlackBuild | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'extra/source/fltk/fltk.SlackBuild') diff --git a/extra/source/fltk/fltk.SlackBuild b/extra/source/fltk/fltk.SlackBuild index bad81b3c8..76d0aa5b5 100755 --- a/extra/source/fltk/fltk.SlackBuild +++ b/extra/source/fltk/fltk.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2015, 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2015, 2018, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,8 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=fltk -VERSION=$(basename $(echo $PKGNAM-*.tar.lz | cut -f 2- -d -) -source.tar.lz) +SRCNAM=fltk-release +VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: @@ -80,9 +81,9 @@ rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf $PKGNAM-$VERSION -tar xvf $CWD/$PKGNAM-${VERSION}-source.tar.lz || exit 1 -cd $PKGNAM-$VERSION || exit 1 +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-${VERSION}.tar.lz || exit 1 +cd $SRCNAM-$VERSION || exit 1 zcat $CWD/fltk.fltk-config.in.diff.gz | patch -p1 --verbose || exit 1 @@ -94,6 +95,13 @@ find . \ -exec chmod 644 {} \+ # Configure: +if [ ! -r configure ]; then + if [ -x ./autogen.sh ]; then + NOCONFIGURE=1 ./autogen.sh + else + autoreconf -vif + fi +fi CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ -- cgit v1.2.3-65-gdbad