slackware-current/patches/source/xscreensaver/dump.android.osx.sources.sh
Patrick J Volkerding 78c0119973 Mon Mar 6 02:21:57 UTC 2023
patches/packages/xscreensaver-6.06-x86_64-1_slack15.0.txz:  Upgraded.
  Here's an upgrade to the latest xscreensaver.
2023-03-06 13:30:35 +01:00

14 lines
616 B
Bash
Executable file

#!/bin/sh
# Repacks the xscreensaver tarball to remove the unneeded OSX sources.
VERSION=${VERSION:-$(echo xscreensaver-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
tar xf xscreensaver-${VERSION}.tar.?z || exit 1
mv xscreensaver-${VERSION}.tar.?z xscreensaver-${VERSION}.tarball.orig
rm -r xscreensaver-${VERSION}/OSX/*
rm -r xscreensaver-${VERSION}/android/*
tar cf xscreensaver-${VERSION}.tar xscreensaver-${VERSION}
rm -r xscreensaver-${VERSION}
plzip -9 xscreensaver-${VERSION}.tar
touch -r xscreensaver-${VERSION}.tarball.orig xscreensaver-${VERSION}.tar.lz
rm xscreensaver-${VERSION}.tarball.orig