diff options
author | ilmich <ardutu@gmail.com> | 2022-06-22 23:00:53 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-07-02 09:55:30 +0700 |
commit | 13a0a7446addc92a71c4294cbf8db790c90ba37d (patch) | |
tree | 7845bca1fc9a148bb07e71e27725dfa0a717d86b /games | |
parent | 78fa0a01d7b2018ecaf2597f9808ef4eb6bd9a0f (diff) | |
download | slackbuilds-13a0a7446addc92a71c4294cbf8db790c90ba37d.tar.gz |
games/vice-libretro: Added (VICE libretro port)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/vice-libretro/README | 12 | ||||
-rw-r--r-- | games/vice-libretro/slack-desc | 19 | ||||
-rw-r--r-- | games/vice-libretro/vice-libretro.SlackBuild | 96 | ||||
-rw-r--r-- | games/vice-libretro/vice-libretro.info | 10 |
4 files changed, 137 insertions, 0 deletions
diff --git a/games/vice-libretro/README b/games/vice-libretro/README new file mode 100644 index 0000000000..1cf398fa5d --- /dev/null +++ b/games/vice-libretro/README @@ -0,0 +1,12 @@ +vice (Versatile Commodore 8-bit emulator) core for libretro. + +This script builds the cores for + +- Commodore 64 +- Commodore VIC20 +- Commodore C128 +- Commodore Plus4 +- Commodore Pet + +To build the debugging symbols use: + DEBUG=1 ./vice-libretro.SlackBuild diff --git a/games/vice-libretro/slack-desc b/games/vice-libretro/slack-desc new file mode 100644 index 0000000000..823d376e8f --- /dev/null +++ b/games/vice-libretro/slack-desc @@ -0,0 +1,19 @@ +# 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------------------------------------------------------| +vice-libretro: vice-libretro (VICE libretro port) +vice-libretro: +vice-libretro: Versatile Commodore 8-bit cores for libretro +vice-libretro: +vice-libretro: Homepage: https://www.libretro.com/ +vice-libretro: +vice-libretro: +vice-libretro: +vice-libretro: +vice-libretro: +vice-libretro: diff --git a/games/vice-libretro/vice-libretro.SlackBuild b/games/vice-libretro/vice-libretro.SlackBuild new file mode 100644 index 0000000000..e4b826cfde --- /dev/null +++ b/games/vice-libretro/vice-libretro.SlackBuild @@ -0,0 +1,96 @@ +#!/bin/bash + +# Slackware build script for vice-libretro + +# Copyright 2022 ilmich < ardutu at gmail dot com > +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=vice-libretro +VERSION=${VERSION:-2022.06.22_c3becd1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +LIBDIRSUFFIX= +[ "$ARCH" = x86_64 ] && LIBDIRSUFFIX=64 + +set -eu + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$VERSION +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 {} \; + +[ "${DEBUG:=0}" != 0 ] && DEBUG=1 + +for i in x64 xvic x128 xpet xplus4; do + LIBNAM=vice_${i}_libretro + make DEBUG=$DEBUG GIT_VERSION="${VERSION#*_}" EMUTYPE=$i + + install -Dm0644 $LIBNAM.so $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so + install -Dm0644 $LIBNAM.info $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info + + make clean DEBUG=$DEBUG GIT_VERSION="${VERSION#*_}" EMUTYPE=$i +done + +if [ $DEBUG = 0 ]; then + 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 +fi + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md $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 diff --git a/games/vice-libretro/vice-libretro.info b/games/vice-libretro/vice-libretro.info new file mode 100644 index 0000000000..8112a98386 --- /dev/null +++ b/games/vice-libretro/vice-libretro.info @@ -0,0 +1,10 @@ +PRGNAM="vice-libretro" +VERSION="2022.06.22_c3becd1" +HOMEPAGE="https://www.libretro.com/" +DOWNLOAD="https://ilmich.github.io/src/vice-libretro-2022.06.22_c3becd1.tar.xz" +MD5SUM="f8914f1f83501de47a26bf5fc2847d78" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="RetroArch" +MAINTAINER="ilmich" +EMAIL="ardutu@gmail.com" |