system/pcem: Updated for version b8ad941.20230304.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Gene Carlson 2023-03-11 23:03:40 +09:00 committed by Willy Sudiarto Raharjo
parent 43bc749c9e
commit 016b11fc9a
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 19 additions and 6 deletions

View File

@ -2,7 +2,7 @@
# Slackware build script for pcem
# Copyright 2022 K. Eugene Carlson Tsukuba, Japan
# Copyright 2022-2023 K. Eugene Carlson Tsukuba, Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pcem
VERSION=${VERSION:-fa9c5ef.20220623}
SRCVERSION=${SRCVERSION:-fa9c5ef6c0e49389faaee329f52caab709762342}
VERSION=${VERSION:-b8ad941.20230304}
SRCVERSION=${SRCVERSION:-b8ad9416bc1d3acd8b384a83b753ddf2282bd091}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -102,6 +102,7 @@ find -L . \
mkdir build
cd build
cmake -G "Ninja" \
-DwxWidgets_CONFIG_OPTIONS="--version=3.0" \
-DCMAKE_C_FLAGS_RELEASE="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=Release \
@ -116,6 +117,18 @@ ninja
DESTDIR=$PKG ninja install/strip
cd ..
# Use a wrapper script to create a symlink to the system roms collection
# (available with pcem-roms on SBo).
mv $PKG/usr/bin/pcem $PKG/usr/bin/PCem
cat << EOF >> $PKG/usr/bin/pcem
#!/bin/bash
[ ! -d \$HOME/.pcem ] && mkdir \$HOME/.pcem
[ ! -d \$HOME/.pcem/roms ] && ln -s /usr/share/pcem/roms \$HOME/.pcem/roms
PCem
EOF
chmod 0755 $PKG/usr/bin/pcem
mkdir -p $PKG/usr/man/man1
mv $PKG/usr/share/man/man1/pcem.man/pcem.man.1 $PKG/usr/man/man1/pcem.1
rm -r $PKG/usr/share/man

View File

@ -1,8 +1,8 @@
PRGNAM="pcem"
VERSION="fa9c5ef.20220623"
VERSION="b8ad941.20230304"
HOMEPAGE="http://pcem-emulator.co.uk/"
DOWNLOAD="https://github.com/sarah-walker-pcem/pcem/archive/fa9c5ef6c0e49389faaee329f52caab709762342/pcem-fa9c5ef6c0e49389faaee329f52caab709762342.zip"
MD5SUM="a0662fdfdca03ec769badba91f9ebe79"
DOWNLOAD="https://github.com/sarah-walker-pcem/pcem/archive/b8ad9416bc1d3acd8b384a83b753ddf2282bd091/pcem-b8ad9416bc1d3acd8b384a83b753ddf2282bd091.zip"
MD5SUM="5df65f15b4db312cedcfadabede4001f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="wxGTK3"