summaryrefslogtreecommitdiffstats
path: root/libraries/libunibreak
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libunibreak')
-rw-r--r--libraries/libunibreak/README12
-rw-r--r--libraries/libunibreak/libunibreak.SlackBuild37
-rw-r--r--libraries/libunibreak/libunibreak.info12
-rw-r--r--libraries/libunibreak/slack-desc2
4 files changed, 32 insertions, 31 deletions
diff --git a/libraries/libunibreak/README b/libraries/libunibreak/README
index 4002eb2f91..597ba98bcb 100644
--- a/libraries/libunibreak/README
+++ b/libraries/libunibreak/README
@@ -1,7 +1,9 @@
-Libunibreak is an implementation of the line breaking and word breaking
-algorithms as described in Unicode Standard Annex 14 and Unicode Standard
-Annex 29.
+libunibreak (a line breaking library)
+
+Libunibreak is an implementation of the line breaking and word
+breaking algorithms as described in Unicode Standard Annex 14 and
+Unicode Standard Annex 29.
It is designed to be used in a generic text renderer. FBReader is one
-real-world example, and the Enlightenment Foundation Libraries are another.
-You may also check some simple sample code, like showbreak and breaktext.
+real-world example, and the Enlightenment Foundation Libraries are
+another.
diff --git a/libraries/libunibreak/libunibreak.SlackBuild b/libraries/libunibreak/libunibreak.SlackBuild
index bd9760c456..9251cefd1e 100644
--- a/libraries/libunibreak/libunibreak.SlackBuild
+++ b/libraries/libunibreak/libunibreak.SlackBuild
@@ -1,13 +1,22 @@
#!/bin/bash
# Slackware build script for libunibreak
-# Maintained as of version 3.0 by slackmart <slackmart@gmail.com>
-# Revision date: 2016/09/29
+# Maintained as of version 3.0 by slackmart <email removed>
+# Now maintained by B. Watson <urchlay@slackware.uk>
+# Original version had no license; now licensed under the WTFPL. See
+# http://www.wtfpl.net/txt/copying/ for details.
+
+# 20240315 bkw: update for v6.1
+# 20230111 bkw: update for v5.1
+# 20211003 bkw:
+# - take over maintenance
+# - update for v4.3
+# - add HTML docs to package
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libunibreak
-VERSION=${VERSION:-3.0}
+VERSION=${VERSION:-6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -20,9 +29,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
@@ -55,13 +61,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
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 {} \;
-
-# Use "-j1" to avoid some warnings
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -75,14 +76,12 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-static=no \
--build=$ARCH-slackware-linux
-make -j1 LIBDIR=/usr/lib${LIBDIRSUFFIX}
-make install LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG
-
-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 || true
+make
+make install-strip DESTDIR=$PKG
+rm -f $PKG/usr/lib*/*.la
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $TMP/$PRGNAM-$VERSION/README.md $TMP/$PRGNAM-$VERSION/LICENCE $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS* LICEN* NEWS README* doc/html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/libunibreak/libunibreak.info b/libraries/libunibreak/libunibreak.info
index bfa38ab432..cfdbef9981 100644
--- a/libraries/libunibreak/libunibreak.info
+++ b/libraries/libunibreak/libunibreak.info
@@ -1,10 +1,10 @@
PRGNAM="libunibreak"
-VERSION="3.0"
-HOMEPAGE="http://vimgadgets.sourceforge.net/libunibreak/"
-DOWNLOAD="https://github.com/adah1972/libunibreak/releases/download/libunibreak_3_0/libunibreak-3.0.tar.gz"
-MD5SUM="13e9a325c00b5943d6afb21f028635e6"
+VERSION="6.1"
+HOMEPAGE="https://github.com/adah1972/libunibreak/"
+DOWNLOAD="https://github.com/adah1972/libunibreak/releases/download/libunibreak_6_1/libunibreak-6.1.tar.gz"
+MD5SUM="8df410d010e03de1a339a400a920335e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Martin Rodriguez"
-EMAIL="slackmart@gmail.com"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/libraries/libunibreak/slack-desc b/libraries/libunibreak/slack-desc
index c03d40dccd..dfb36c5f36 100644
--- a/libraries/libunibreak/slack-desc
+++ b/libraries/libunibreak/slack-desc
@@ -16,4 +16,4 @@ libunibreak: It is designed to be used in a generic text renderer. FBReader is
libunibreak: one real-world example, and the Enlightenment Foundation Libraries
libunibreak: are another.
libunibreak:
-libunibreak: http://vimgadgets.sourceforge.net/libunibreak/
+libunibreak: