diff options
author | Gene Carlson <kvngncrlsn@gmail.com> | 2023-03-11 23:03:40 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-03-11 22:29:46 +0700 |
commit | 016b11fc9ad66918ec47047c5c46393f2a499e2f (patch) | |
tree | 474d758f883524d12a4aff6cf2746bb2f5255a30 /system/pcem/pcem.SlackBuild | |
parent | 43bc749c9e9ceba9b6801f072e058d8df6b7bd53 (diff) |
system/pcem: Updated for version b8ad941.20230304.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/pcem/pcem.SlackBuild')
-rw-r--r-- | system/pcem/pcem.SlackBuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/system/pcem/pcem.SlackBuild b/system/pcem/pcem.SlackBuild index f62dae64207d1..36d31c9ababae 100644 --- a/system/pcem/pcem.SlackBuild +++ b/system/pcem/pcem.SlackBuild @@ -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 |