diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-04 16:34:08 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-04 16:34:08 -0400 |
commit | e582e26404abcd40f54224126af5896e5637e5f5 (patch) | |
tree | 83cccbb8370a43ee139d039040fe3922289b7bb0 /system/btrbk | |
parent | 22b20e5476debf76a6e7f51cba6db2b0e36e09c1 (diff) |
system/btrbk: Make noarch, gzip man pages.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/btrbk')
-rw-r--r-- | system/btrbk/btrbk.SlackBuild | 40 |
1 files changed, 9 insertions, 31 deletions
diff --git a/system/btrbk/btrbk.SlackBuild b/system/btrbk/btrbk.SlackBuild index 8b9020ccb4cf..7063032defe9 100644 --- a/system/btrbk/btrbk.SlackBuild +++ b/system/btrbk/btrbk.SlackBuild @@ -22,25 +22,19 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220404 bkw: Modified by SlackBuilds.org, BUILD=2: +# - make this noarch (it's just a perl script). +# - gzip man pages. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=btrbk VERSION=${VERSION:-0.31.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +ARCH=noarch -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - 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 @@ -50,20 +44,6 @@ TMP=${TMP:-/tmp/SBo} PKG="$TMP"/package-"$PRGNAM" 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 rm -rf $PKG @@ -75,19 +55,17 @@ 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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ make install DESTDIR=$PKG -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 - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mv $PKG/usr/share/man $PKG/usr +gzip -9 $PKG/usr/man/man*/* mv $PKG/usr/share/doc/btrbk/* $PKG/usr/doc/$PRGNAM-$VERSION/ rm -rf $PKG/usr/share |