Rogue Class Linux Download Login

Artifact Content

Artifact da660667702ba4ff0be66679a430aa30fb199bc2:


#!/bin/sh -e

PRGNAM=ragnarok-dosbox
VERSION=${VERSION:-2.5}
BUILD=${BUILD:-1}
TAG=${TAG:-}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp}
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
unzip -q $CWD/rag25.zip

mkdir -p $PKG/c/ragnarok
cp * $PKG/c/ragnarok/
chown -R games:games $PKG/c
chmod -R 775 $PKG/c

mkdir -p $PKG/etc/skel/settings
cp $CWD/ragnarok-dosbox-vjk.txt $PKG/etc/skel/settings/

install -dm755 $PKG/usr/bin
cp $CWD/ragnarok-dosbox $PKG/usr/bin/

install -dm755 $PKG/usr/share/applications
cp $CWD/ragnarok-dosbox.desktop $PKG/usr/share/applications/

install -dm755 $PKG/usr/share/pixmaps
cp $CWD/ragnarok-dosbox.png $PKG/usr/share/pixmaps/

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp CREDITS.DOC LICENSE.DOC MAN_WORD.DOC Quick_ref.doc README.TXT SIGNOFF.TXT \
    $PKG/usr/doc/$PRGNAM-$VERSION/
cp $CWD/ragnarok-handbook.pdf $CWD/readme-rcl.txt \
    $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}