aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-24 13:20:20 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-24 13:20:20 -0400
commit36c68f57e70614bc9b3fc2ef68400a904397c235 (patch)
treeb14766de666abb7596c44c7e48141d529b7573a9
parent3b91510501802393e6a156543395a5b1e67da1f5 (diff)
libraries/libskk: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--libraries/libskk/libskk.SlackBuild31
-rw-r--r--libraries/libskk/libskk.info2
2 files changed, 15 insertions, 18 deletions
diff --git a/libraries/libskk/libskk.SlackBuild b/libraries/libskk/libskk.SlackBuild
index 761ff33e3d5e6..28e02b7aef297 100644
--- a/libraries/libskk/libskk.SlackBuild
+++ b/libraries/libskk/libskk.SlackBuild
@@ -23,25 +23,27 @@
# Maintained as of version 1.0.0 by Jun SAITO <jsaito@xopowo.info>
# Revision date: 2013/03/27
+# 20220424 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - get rid of empty/useless docs.
+# - i486 => i586.
+# - use correct github URL for download.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libskk
VERSION=${VERSION:-1.0.1}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
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
@@ -51,8 +53,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -76,9 +78,9 @@ 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 {} \+
./autogen.sh
CFLAGS="$SLKCFLAGS" \
@@ -94,17 +96,12 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man*/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING INSTALL NEWS README \
+ COPYING NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/libraries/libskk/libskk.info b/libraries/libskk/libskk.info
index 0fec246147166..540f8999d3273 100644
--- a/libraries/libskk/libskk.info
+++ b/libraries/libskk/libskk.info
@@ -1,7 +1,7 @@
PRGNAM="libskk"
VERSION="1.0.1"
HOMEPAGE="https://github.com/ueno/libskk"
-DOWNLOAD="https://github.com/ueno/libskk/archive/1.0.1.tar.gz"
+DOWNLOAD="https://github.com/ueno/libskk/archive/1.0.1/libskk-1.0.1.tar.gz"
MD5SUM="a694faea4ba59061414a80b94c1c8057"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""