2021-07-03 19:48:15 +02:00
|
|
|
#!/bin/bash
|
2015-08-03 03:41:17 +02:00
|
|
|
|
|
|
|
# Slackware build script for bdf2psf
|
|
|
|
|
2023-08-18 09:12:18 +02:00
|
|
|
# Originally written 2015 Didier Spaier Paris, France
|
2022-06-08 18:28:49 +02:00
|
|
|
# Now maintained by B. Watson (urchlay@slackware.uk)
|
2022-01-10 18:43:34 +01:00
|
|
|
|
|
|
|
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
|
|
|
|
2023-08-18 09:12:18 +02:00
|
|
|
# 20230818 bkw: No changes, just a note to myself:
|
|
|
|
# repology complains that this is outdated, and indeed Debian has a
|
|
|
|
# v1.222. However, it's v1.222 of the 'parent' package, console-setup.
|
|
|
|
# The contents of Debian's bdf2psf 1.207 and 1.222 .deb packages are
|
|
|
|
# identical, except changelog.gz differences that document changes to
|
|
|
|
# console-setup (none of which change the bdf2psf portion of it). So
|
|
|
|
# this doesn't need an update.
|
|
|
|
|
2022-12-29 04:01:29 +01:00
|
|
|
# 20221228 bkw: move ARCH assignment to top of script.
|
|
|
|
|
2022-01-10 18:43:34 +01:00
|
|
|
# 20220110 bkw:
|
|
|
|
# - take over maintenance.
|
|
|
|
# - relicense as WTFPL, with permission from Didier.
|
|
|
|
# - update for v1.207.
|
|
|
|
# - get rid of temp files.
|
|
|
|
# - simplify build.
|
2015-08-03 03:41:17 +02:00
|
|
|
|
2021-07-04 11:41:06 +02:00
|
|
|
cd $(dirname $0) ; CWD=$(pwd)
|
|
|
|
|
2015-08-03 03:41:17 +02:00
|
|
|
PRGNAM=bdf2psf
|
2022-01-10 18:43:34 +01:00
|
|
|
VERSION=${VERSION:-1.207}
|
2015-08-03 03:41:17 +02:00
|
|
|
BUILD=${BUILD:-1}
|
|
|
|
TAG=${TAG:-_SBo}
|
2021-07-04 12:23:38 +02:00
|
|
|
PKGTYPE=${PKGTYPE:-tgz}
|
|
|
|
|
2022-12-29 04:01:29 +01:00
|
|
|
# perl script
|
|
|
|
ARCH=noarch
|
|
|
|
|
2021-07-04 12:23:38 +02:00
|
|
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
|
|
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
|
|
|
exit 0
|
|
|
|
fi
|
2015-08-03 03:41:17 +02:00
|
|
|
|
|
|
|
TMP=${TMP:-/tmp/SBo}
|
|
|
|
PKG=$TMP/package-$PRGNAM
|
|
|
|
OUTPUT=${OUTPUT:-/tmp}
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
rm -rf $PKG
|
|
|
|
mkdir -p $TMP $PKG $OUTPUT
|
|
|
|
cd $PKG
|
2022-01-10 18:43:34 +01:00
|
|
|
ar p $CWD/${PRGNAM}_${VERSION}_all.deb data.tar.xz | tar xvfJ -
|
2015-08-03 03:41:17 +02:00
|
|
|
chown -R root:root .
|
2022-01-10 18:43:34 +01:00
|
|
|
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
|
|
|
|
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
|
|
|
|
|
|
|
|
mv $PKG/usr/share/man $PKG/usr/man
|
|
|
|
|
|
|
|
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
|
|
|
|
mkdir -p $PKGDOC
|
|
|
|
mv $PKG/usr/share/doc/$PRGNAM/* $PKGDOC
|
|
|
|
rm -rf $PKG/usr/share/doc
|
|
|
|
|
|
|
|
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
|
2015-08-03 03:41:17 +02:00
|
|
|
|
|
|
|
mkdir -p $PKG/install
|
|
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
|
|
|
|
cd $PKG
|
2021-07-04 12:23:38 +02:00
|
|
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|