system/yash: Added doinst.sh.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Hunter Sezen 2019-02-08 20:56:34 +07:00 committed by Willy Sudiarto Raharjo
parent 5b67929105
commit a71ce2cf60
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 12 additions and 3 deletions

8
system/yash/doinst.sh Normal file
View file

@ -0,0 +1,8 @@
if [ ! -r etc/shells ]; then
touch etc/shells
chmod 644 etc/shells
fi
if ! grep -q /bin/yash etc/shells ; then
printf %s\\n /bin/yash >> etc/shells
fi

View file

@ -3,7 +3,7 @@
# Slackware build script for yash
# Copyright 2015-2018 Leonard Schmidt <lems@gmx.net>
# Copyright 2018 Hunter Sezen <orbea@fredslev.dk>
# Copyright 2018-2019 Hunter Sezen <orbea@fredslev.dk>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
PRGNAM=yash
VERSION=${VERSION:-2.48}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -80,7 +80,7 @@ make
make install DESTDIR=$PKG
mkdir -p $PKG/usr/bin
( cd $PKG/usr/bin ; ln -sf /bin/yash yash )
ln -sf /bin/$PRGNAM $PKG/usr/bin/$PRGNAM
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
@ -94,6 +94,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}