diff options
Diffstat (limited to 'source/l/woff2/woff2.SlackBuild')
-rwxr-xr-x | source/l/woff2/woff2.SlackBuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/l/woff2/woff2.SlackBuild b/source/l/woff2/woff2.SlackBuild index e553170ef..083f615b1 100755 --- a/source/l/woff2/woff2.SlackBuild +++ b/source/l/woff2/woff2.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2020 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2020, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=woff2 VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -101,6 +101,14 @@ cd cmake-build make install DESTDIR=$PKG || exit 1 cd .. +# Make sure that the tools get installed: +for binary in woff2_compress woff2_decompress woff2_info ; do + if [ ! -x "$PKG/usr/bin/$binary" ]; then + mkdir -p $PKG/usr/bin + install -m 755 cmake-build/$binary $PKG/usr/bin + fi +done + # Strip binaries: find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |