mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
776abd8e68
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
# Slackware build script for spidey
|
|
# Written by Petar Petrov, <ppetrov@paju.oulu.fi> and
|
|
# hereby submitted to the public domain
|
|
|
|
# THIS SLACKBUILD IS DISTRIBUTETD IN THE HOPE OF BEING
|
|
# USEFUL BUT WITHOUT ANY WARRANTY. THE AUTHOR IS _NOT_
|
|
# RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS CAUSED BY IT.
|
|
|
|
PRGNAM=spidey
|
|
VERSION=${VERSION:-20060601}
|
|
BUILD=${BUILD:-1}
|
|
TAG=${TAG:-_SBo}
|
|
|
|
ARCH=i386
|
|
|
|
CWD=$(pwd)
|
|
TMP=${TMP:-/tmp/SBo}
|
|
PKG=$TMP/package-$PRGNAM
|
|
OUTPUT=${OUTPUT:-/tmp}
|
|
|
|
set -e
|
|
|
|
rm -rf $PKG
|
|
mkdir -p $TMP $PKG $OUTPUT
|
|
cd $TMP
|
|
rm -rf $PRGNAM-$VERSION
|
|
mkdir $PRGNAM-$VERSION
|
|
cd $PRGNAM-$VERSION
|
|
gunzip -c $CWD/$PRGNAM.linux.gz > spidey
|
|
|
|
install -D -m755 spidey $PKG/usr/bin/spidey
|
|
|
|
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
|
|
|
|
mkdir -p $PKG/install
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
cd $PKG
|
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|