diff options
author | B. Watson <yalhcru@gmail.com> | 2022-05-02 02:47:49 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-07 13:59:19 +0700 |
commit | 52b6caae486b4495880158d6ec661d7de4842ef3 (patch) | |
tree | 6857b6ee42dccd1072f7ee7d6f18f5b7f2398eab /games/scid_vs_pc | |
parent | 3a02606f4b741ebc2277cf9b95bea22d91fc93da (diff) |
games/scid_vs_pc: Fix fonts, docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/scid_vs_pc')
-rw-r--r-- | games/scid_vs_pc/doinst.sh | 4 | ||||
-rw-r--r-- | games/scid_vs_pc/scid_vs_pc.SlackBuild | 34 |
2 files changed, 28 insertions, 10 deletions
diff --git a/games/scid_vs_pc/doinst.sh b/games/scid_vs_pc/doinst.sh index d452a46662b97..da7af062c9a62 100644 --- a/games/scid_vs_pc/doinst.sh +++ b/games/scid_vs_pc/doinst.sh @@ -7,3 +7,7 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 fi fi + +if [ -x /usr/bin/fc-cache ]; then + /usr/bin/fc-cache -f +fi diff --git a/games/scid_vs_pc/scid_vs_pc.SlackBuild b/games/scid_vs_pc/scid_vs_pc.SlackBuild index 56450a77eb3bc..f9ee5de3481e4 100644 --- a/games/scid_vs_pc/scid_vs_pc.SlackBuild +++ b/games/scid_vs_pc/scid_vs_pc.SlackBuild @@ -23,11 +23,19 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220501 bkw: Modified by SlackBuilds.org, BUILD=2: +# - move TTF fonts to correct directory, which enables the +# Chess Figurines option in the PGN window. +# - add fc-cache to doinst.sh. +# - add SlackBuild to doc dir. +# Note to maintainer: please consider moving the binaries from /usr/bin +# to /usr/games. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=scid_vs_pc VERSION=${VERSION:-4.23} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +47,6 @@ if [ -z "$ARCH" ]; then 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 @@ -75,25 +80,34 @@ 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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ + +# 20220502 bkw: running fc-cache while building the package affects +# the build host, not the package. there is no option to disable it, +# so dike it out. +sed -i '/^[\t ]*fc-cache/s,fc-cache,true,' Makefile.conf + +# 20220502 bkw: fonts were being installed to the wrong directory. +# the configure command does not accept a FONTDIR option, but +# the Makefile does. CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ BINDIR=/usr/bin/ \ - SHAREDIR=/usr/share/scid/ \ - FONTDIR=/usr/share/fonts/truetype/Scid + SHAREDIR=/usr/share/scid/ make -make install DESTDIR=$PKG +make install DESTDIR=$PKG FONTDIR=$PKG/usr/share/fonts/TTF 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.* COPYING doc/* $PKG/usr/doc/$PRGNAM-$VERSION +install -m0644 README.* COPYING doc/* $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/usr/share/pixmaps cp $TMP/$PRGNAM-$VERSION/icons/*.png $PKG/usr/share/pixmaps |