From 0d74cbe3c33ae3cd831fbc7f7a7ae6f289cc0d5e Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sun, 20 Jan 2019 20:28:36 +0100 Subject: [PATCH] added packagin iortcw official dat --- y/iortcw-data/SlackBuild | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 y/iortcw-data/SlackBuild diff --git a/y/iortcw-data/SlackBuild b/y/iortcw-data/SlackBuild new file mode 100755 index 00000000..46ed6153 --- /dev/null +++ b/y/iortcw-data/SlackBuild @@ -0,0 +1,51 @@ +#!/bin/sh +set -x + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) + +BUILD=1 +VERSION=1 +ARCH="noarch" + +TAG=cyco +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +PREFIX=/usr + +# Cleaning +rm -fr $PKG +mkdir -p $PKG$PREFIX/share/games/rtcw/main + +# Installation +for i in mp_pak0.pk3 mp_pak1.pk3 mp_pak2.pk3 pak0.pk3 sp_pak1.pk3 sp_pak2.pk3; do + cp $CWD/$i $PKG$PREFIX/share/games/rtcw/main/ +done + +# Cleaning +chown -R root:root $PKG +find $PKG -type f -exec chmod 644 {} \; +chmod +x $PKG$PREFIX/bin/* + +# Packaging +cd $PKG +mkdir install +cat < install/slack-desc +$PRGNAM: $PRGNAM (Official data for iortcw) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/iortcw/iortcw +$PRGNAM: +EOF + +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz