system/makepp: Updated for version 2.0.99.2.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-08-24 21:37:02 -04:00 committed by Willy Sudiarto Raharjo
parent 02671e8ade
commit c0aba663aa
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 19 additions and 17 deletions

View file

@ -6,19 +6,20 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20210824 bkw: update for v2.0.99.2, aka 2.1rc1, because 2.0 won't
# build on -current and other distros have been shipping 2.1 betas and
# release candidates for years now.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=makepp
VERSION=${VERSION:-2.0}
VERSION=${VERSION:-2.0.99.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
# 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
@ -34,32 +35,33 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tgz
tar xvf $CWD/$PRGNAM-$VERSION.t?z
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 {} \;
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# Most of the executables have 2 names each, short and long, e.g. mpp
# and makepp. install.pl installs them as hardlinks, which is kinda weird
# for a Slack package. Not sure they'd cause any problems, but I *know*
# symlinks work correctly, so:
sed -i 's,^ *link\>,symlink,' install.pl
sed -i \
-e 's,^ *link\>,symlink,' \
install.pl
# configure/make is just a wrapper around install.pl. Skip the tests,
# because they spam /usr/include and don't even clean up after themselves.
PERL5LIB="$( pwd )" \
perl install.pl \
/usr/bin \
/usr/share/$PRGNAM \
/usr/man \
/usr/doc/$PRGNAM-$VERSION \
/usr/doc/$PRGNAM-$VERSION/html \
none \
$PKG/usr
$PKG
gzip -9 $PKG/usr/man/man1/*.1
# in 2.0.99.2, they're already gzipped.
#gzip -9 $PKG/usr/man/man1/*.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,8 +1,8 @@
PRGNAM="makepp"
VERSION="2.0"
VERSION="2.0.99.2"
HOMEPAGE="http://makepp.sourceforge.net/"
DOWNLOAD="https://downloads.sourceforge.net/project/makepp/2.0/makepp-2.0.tgz"
MD5SUM="634d67455bf32fe1f16f65b7e32f4a45"
DOWNLOAD="https://downloads.sourceforge.net/project/makepp/2.1/makepp-2.0.99.2.txz"
MD5SUM="62aa55f8a20a4256f7413746724be58a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""