mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
cleansing
This commit is contained in:
parent
75a4d77c7b
commit
50a4ccd151
1 changed files with 7 additions and 29 deletions
|
@ -1,37 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# --- INIT ---
|
||||
# Set initial variables:
|
||||
CWD=`pwd`
|
||||
if [ "$TMP" = "" ]; then
|
||||
TAG=cyco
|
||||
OUTPUT=/tmp
|
||||
CWD=$(pwd)
|
||||
TAG=${TAG:-cyco}
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
TMP=/tmp/$TAG
|
||||
fi
|
||||
|
||||
PRGNAM=FlashBack
|
||||
VERSION=1.0
|
||||
ARCH=${ARCH:-dosbox}
|
||||
BUILD=1
|
||||
PRGNAM=$(basename $(CWD))
|
||||
VERSION=${VERSION:-1.0}
|
||||
ARCH=${ARCH:-${ARCH:-dosbox}}
|
||||
BUILD=${BUILD:-1}
|
||||
|
||||
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
# --- PACKAGE BUILDING ---
|
||||
|
||||
echo "++"
|
||||
echo "|| $PRGNAM-$VERSION"
|
||||
echo "++"
|
||||
|
||||
rm -rf $PKG $TMP/${PRGNAM}-${VERSION}
|
||||
|
||||
cd $TMP
|
||||
|
||||
# --- TARBALL EXTRACTION,PATCH,MODIFY ---
|
||||
|
||||
#
|
||||
# Install all the needed stuff to the package dir
|
||||
#
|
||||
mkdir -p $PKG/usr/bin $PKG/usr/share/games
|
||||
cd $PKG/usr/share/games
|
||||
tar xf $CWD/FlashBack.tar.bz2
|
||||
|
@ -160,15 +145,11 @@ dosbox -conf /usr/share/games/FlashBack/dosbox.config
|
|||
EOF
|
||||
chmod +x flashback.sh
|
||||
|
||||
# --- OWNERSHIP, RIGHTS ---
|
||||
|
||||
chown -R root:root $PKG/*
|
||||
chmod -R go-w $PKG/usr/share/games/FlashBack/
|
||||
chmod 666 $PKG/usr/share/games/FlashBack/DATA/*
|
||||
chmod a+w $PKG/usr/share/games/FlashBack/DATA/{GLOBAL.FIB,DATA/FB_TXT.FNT,DATA/LOGOS.POL}
|
||||
|
||||
# --- PACKAGE DESCRIPTION ---
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
|
@ -193,8 +174,5 @@ ${PRGNAM}: see /usr/doc/${PRGNAM}-${VERSION} for more.
|
|||
${PRGNAM}:
|
||||
EOF
|
||||
|
||||
# --- BUILDING ---
|
||||
|
||||
# Build the package:
|
||||
cd $PKG
|
||||
makepkg -l y -c n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}$TAG.txz
|
||||
|
|
Loading…
Reference in a new issue