diff options
author | B. Watson <urchlay@slackware.uk> | 2024-10-10 16:42:31 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-10-12 11:34:46 +0700 |
commit | b54bf11d336d4357e7dd7b8cb860139549b5b787 (patch) | |
tree | dbab873038b9a0bb7883b5dbdb57ea39a132a7c8 /system/ttygif | |
parent | fb2c8b1562a0620447d0a29873e0c08ca7fed8ec (diff) |
system/ttygif: Fix URL, use SLKCFLAGS, strip binary.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ttygif')
-rw-r--r-- | system/ttygif/ttygif.SlackBuild | 25 | ||||
-rw-r--r-- | system/ttygif/ttygif.info | 2 |
2 files changed, 10 insertions, 17 deletions
diff --git a/system/ttygif/ttygif.SlackBuild b/system/ttygif/ttygif.SlackBuild index 809a0e30aef4..5646144dba60 100644 --- a/system/ttygif/ttygif.SlackBuild +++ b/system/ttygif/ttygif.SlackBuild @@ -22,11 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20241010 bkw: modified by SlackBuilds.org, BUILD=2: +# - strip binary. +# - actually use SLKCFLAGS. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ttygif VERSION=${VERSION:-1.4.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +42,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -52,16 +53,12 @@ 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 @@ -75,18 +72,14 @@ cd $PRGNAM-$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 \ + -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 {} \; - -make + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} + -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 +make CC="${CC:-gcc} $SLKCFLAGS" mkdir -p $PKG/usr/bin -install -D -m0755 $PRGNAM $PKG/usr/bin/$PRGNAM -install -D -m0755 $PRGNAM $PKG/usr/bin/$PRGNAM +install -s -D -m0755 $PRGNAM $PKG/usr/bin/$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/system/ttygif/ttygif.info b/system/ttygif/ttygif.info index 3f77965ddf73..854cdabaaf83 100644 --- a/system/ttygif/ttygif.info +++ b/system/ttygif/ttygif.info @@ -1,7 +1,7 @@ PRGNAM="ttygif" VERSION="1.4.0" HOMEPAGE="https://github.com/icholy/ttygif" -DOWNLOAD="https://github.com/icholy/ttygif/archive/1.4.0.tar.gz" +DOWNLOAD="https://github.com/icholy/ttygif/archive/1.4.0/ttygif-1.4.0.tar.gz" MD5SUM="bf7df1038be0d5e9d10c397a025d8347" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |