libraries/libunibreak: Updated for version 4.3, new maintainer.

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-10-04 03:24:00 -04:00 committed by Willy Sudiarto Raharjo
parent de076e10fa
commit c9f43e869b
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 30 additions and 31 deletions

View file

@ -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.

View file

@ -1,13 +1,20 @@
#!/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 <yalhcru@gmail.com>
# Original version had no license; now licensed under the WTFPL. See
# http://www.wtfpl.net/txt/copying/ for details.
# 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:-4.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -20,9 +27,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 +59,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 +74,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

View file

@ -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="4.3"
HOMEPAGE="https://github.com/adah1972/libunibreak/"
DOWNLOAD="https://github.com/adah1972/libunibreak/releases/download/libunibreak_4_3/libunibreak-4.3.tar.gz"
MD5SUM="f0c4488fad8dc92a11f4523d22c099d3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Martin Rodriguez"
EMAIL="slackmart@gmail.com"
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"

View file

@ -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: