Add legendary
This commit is contained in:
parent
c119b6e5be
commit
e3634513f2
1 changed files with 64 additions and 0 deletions
64
ap/legendary/SlackBuild
Executable file
64
ap/legendary/SlackBuild
Executable file
|
@ -0,0 +1,64 @@
|
|||
#!/bin/sh
|
||||
|
||||
# variables
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
CWD=$(pwd)
|
||||
OUTPUT=/tmp
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
DOCS="LICENSE README.md"
|
||||
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS="-fPIC -O2"
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$PRGNAM
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
[ ! -e $REPOSITORY ] && git clone https://github.com/derrod/legendary.git $REPOSITORY
|
||||
( cd $REPOSITORY && git pull )
|
||||
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM
|
||||
cd $TMP/$PRGNAM
|
||||
VERSION="$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)"
|
||||
|
||||
# installation
|
||||
python3 ./setup.py install --root=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM
|
||||
cp -R $DOCS $PKG/usr/doc/$PRGNAM
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (A free and open-source replacement for the Epic Games Launcher)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Legendary is an open-source game launcher that can download and install games
|
||||
$PRGNAM: from the Epic Games platform on Linux and Windows. It's name as a
|
||||
$PRGNAM: tongue-in-cheek play on tiers of item rarity in many MMORPGs.
|
||||
$PRGNAM:
|
||||
$PRGNAM: Right now Legendary is in beta and not feature-complete.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://github.com/derrod/legendary
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
Loading…
Reference in a new issue