add lutris and ioquake3-data
This commit is contained in:
parent
fa4f242120
commit
4bcd99d316
2 changed files with 161 additions and 0 deletions
50
y/ioquake3-data/SlackBuild
Executable file
50
y/ioquake3-data/SlackBuild
Executable file
|
@ -0,0 +1,50 @@
|
||||||
|
#!/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/quake3/baseq3
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
cp $CWD/{*.pk3,q3*} $PKG$PREFIX/share/games/quake3/baseq3/
|
||||||
|
chmod 0644 $PKG$PREFIX/share/games/quake3/baseq3/*
|
||||||
|
|
||||||
|
# Cleaning
|
||||||
|
chown -R root:root $PKG
|
||||||
|
find $PKG -type f -exec chmod 644 {} \;
|
||||||
|
chmod +x $PKG$PREFIX/bin/*
|
||||||
|
|
||||||
|
# Packaging
|
||||||
|
cd $PKG
|
||||||
|
mkdir install
|
||||||
|
cat <<EOF > install/slack-desc
|
||||||
|
$PRGNAM: $PRGNAM (Official data for ioquake3)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: https://ioquake3.org/
|
||||||
|
$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
|
111
y/lutris/SlackBuild
Executable file
111
y/lutris/SlackBuild
Executable file
|
@ -0,0 +1,111 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for lutris
|
||||||
|
|
||||||
|
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
|
||||||
|
# Copyright 2018 Brenton Earl <brent@exitstatusone.com>
|
||||||
|
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version, with the following exception:
|
||||||
|
# the text of the GPL license may be omitted.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# without any warranty; without even the implied warranty of
|
||||||
|
# merchantability or fitness for a particular purpose. Compiling,
|
||||||
|
# interpreting, executing or merely reading the text of the program
|
||||||
|
# may result in lapses of consciousness and/or very being, up to and
|
||||||
|
# including the end of all existence and the Universe as we know it.
|
||||||
|
# See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You may have received a copy of the GNU General Public License along
|
||||||
|
# with this program (most likely, a file named COPYING). If not, see
|
||||||
|
# <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
# REQUIRES="pygobject3-python3 dbus-python3 python3-PyYAML gnome-desktop webkit2gtk"
|
||||||
|
|
||||||
|
PRGNAM=lutris
|
||||||
|
VERSION=${VERSION:-$(curl https://lutris.net/releases/ | grep tar\.xz | tail -n1 | grep -o "[0-9.]*" | head -n1 | sed 's|.$||')}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-cyco}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
TMP=${TMP:-/tmp/SBo}
|
||||||
|
PKG=${PKG:-$TMP/package-$PRGNAM}
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
DOCS="AUTHORS LICENSE INSTALL.rst README.rst"
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PRGNAM
|
||||||
|
|
||||||
|
[ ! -e $CWD/$PRGNAM\_$VERSION.tar.xz ] && wget -c https://lutris.net/releases/lutris_$VERSION.tar.xz -O $CWD/$PRGNAM\_$VERSION.tar.xz
|
||||||
|
|
||||||
|
tar xvf $CWD/$PRGNAM\_$VERSION.tar.xz
|
||||||
|
cd $PRGNAM
|
||||||
|
chown -R root:root .
|
||||||
|
find -L . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
|
python3 setup.py install --root $PKG
|
||||||
|
|
||||||
|
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
|
||||||
|
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
cat <<EOF > $PKG/install/slack-desc
|
||||||
|
# HOW TO EDIT THIS FILE:
|
||||||
|
# The "handy ruler" below makes it easier to edit a package description.
|
||||||
|
# Line up the first '|' above the ':' following the base package name, and
|
||||||
|
# the '|' on the right side marks the last column you can put a character in.
|
||||||
|
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||||
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||||
|
|
||||||
|
|-----handy-ruler------------------------------------------------------|
|
||||||
|
lutris: lutris (Open Gaming Platform)
|
||||||
|
lutris:
|
||||||
|
lutris: Lutris is an open gaming platform for Linux. It helps you install
|
||||||
|
lutris: and manage your games in a unified interface. The goal is to support
|
||||||
|
lutris: every game which runs on Linux, from native Windows games (via Wine)
|
||||||
|
lutris: to emulators and browser games.
|
||||||
|
lutris:
|
||||||
|
lutris: Home page: https://lutris.net/
|
||||||
|
lutris:
|
||||||
|
lutris:
|
||||||
|
lutris:
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat <<EOF > $PKG/install/doinst.sh
|
||||||
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||||
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||||
|
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
Loading…
Reference in a new issue