system/makeself: Make a symlink to makeself.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-06-06 00:45:33 +07:00
parent 93b9cdcf5a
commit 7636eae33a
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 10 additions and 9 deletions

View File

@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=makeself PRGNAM=makeself
VERSION=2.2.0 VERSION=${VERSION:-2.2.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
ARCH=noarch ARCH=noarch
@ -48,10 +48,10 @@ fi
cd $PRGNAM-release-$VERSION cd $PRGNAM-release-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-exec chmod 755 {} \; -o \ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
sed -i -e "s,HEADER\=\`dirname \"\$0\"\`,HEADER\=\/usr\/share,g" makeself.sh sed -i -e "s,HEADER\=\`dirname \"\$0\"\`,HEADER\=\/usr\/share,g" makeself.sh
mkdir -p $PKG/usr/bin mkdir -p $PKG/usr/bin
@ -62,13 +62,14 @@ cp makeself.sh $PKG/usr/bin
cat makeself.1 |gzip -9 > $PKG/usr/man/man1/makeself.1.gz cat makeself.1 |gzip -9 > $PKG/usr/man/man1/makeself.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \ cp -a COPYING README.md makeself.lsm update-readme $PKG/usr/doc/$PRGNAM-$VERSION
COPYING README.md makeself.lsm update-readme \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG/usr/bin
ln -s makeself.sh $PRGNAM
cd $PKG 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:-tgz}