diff options
author | B. Watson <urchlay@slackware.uk> | 2023-02-03 22:19:56 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-11 09:30:40 +0700 |
commit | 80fbcc9a3a8b9683e7051d8a2f111af234f86543 (patch) | |
tree | aef8955f4a68548478b40a2ce7ae881affe2fecf /system/btop | |
parent | 8ea06cd5a7101e1d3dd65da3abeb7e906326eea2 (diff) |
system/btop: Fix PRINT_PACKAGE_NAME, add doinst.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/btop')
-rw-r--r-- | system/btop/btop.SlackBuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/system/btop/btop.SlackBuild b/system/btop/btop.SlackBuild index 98a1c612c5288..c62a6786b4f40 100644 --- a/system/btop/btop.SlackBuild +++ b/system/btop/btop.SlackBuild @@ -22,12 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20230203 bkw: fix PRINT_PACKAGE_NAME, add doinst.sh for desktop/icons. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=btop VERSION=${VERSION:-1.2.12} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -71,9 +74,9 @@ 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 {} \+ sed -i "s|-O2|$SLKCFLAGS|" Makefile || exit 1 make PREFIX=/usr all @@ -88,6 +91,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |