diff options
Diffstat (limited to 'system/smem/smem.SlackBuild')
-rw-r--r-- | system/smem/smem.SlackBuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/system/smem/smem.SlackBuild b/system/smem/smem.SlackBuild index 7d3842858fc32..ca8a23bd352eb 100644 --- a/system/smem/smem.SlackBuild +++ b/system/smem/smem.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for smem +# Copyright 2022 Yth | Pont-en-Royans, France | yth@ythogtha.org # Copyright 2009 Dušan Stefanović <stefanovic.dusan@gmail.com> # Copyright 2013-2017 Audrius Kažukauskas <audrius@neutrino.lt> # All rights reserved. @@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=smem -VERSION=${VERSION:-1.4} +VERSION=${VERSION:-1.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -51,7 +52,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || tar xvf $CWD/$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -60,9 +61,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -install -m 0755 -D smem $PKG/usr/bin/smem +# Using python3 +sed -i 's#usr/bin/env python#usr/bin/env python3#' smem +# Renamed to smem-py because /usr/bin/smem is part of slackware's cfitsio package +install -m 0755 -D smem $PKG/usr/bin/smem-py -install -m 0644 -D smem.8 $PKG/usr/man/man8/smem.8 +install -m 0644 -D smem.8 $PKG/usr/man/man8/smem-py.8 gzip -9 $PKG/usr/man/man8/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |