system/zopfli: Fix github URL, strip binary.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-04-02 22:48:44 -04:00 committed by Willy Sudiarto Raharjo
parent 1eac90984d
commit 77c5c41dbc
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 8 additions and 8 deletions

View File

@ -22,11 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20240402 bkw: Modified by SlackBuilds.org, BUILD=2:
# - strip binary.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=zopfli
VERSION=${VERSION:-1.0.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -38,9 +41,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
@ -61,14 +61,14 @@ cd $PRGNAM-$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 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
make
mkdir -p $PKG/usr/bin $PKG/usr/doc/$PRGNAM-$VERSION
cp ./zopfli $PKG/usr/bin
install -s -m0755 ./zopfli $PKG/usr/bin
cp CONTRIBUTORS COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View File

@ -1,7 +1,7 @@
PRGNAM="zopfli"
VERSION="1.0.0"
HOMEPAGE="https://github.com/google/zopfli"
DOWNLOAD="https://github.com/google/zopfli/archive/zopfli-1.0.0.tar.gz"
DOWNLOAD="https://github.com/google/zopfli/archive/zopfli-1.0.0/zopfli-zopfli-1.0.0.tar.gz"
MD5SUM="22321d8350fafa2d3290544317b6be83"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""