summaryrefslogtreecommitdiffstats
path: root/libraries/libraqm
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libraqm')
-rw-r--r--libraries/libraqm/README6
-rw-r--r--libraries/libraqm/libraqm.SlackBuild20
2 files changed, 19 insertions, 7 deletions
diff --git a/libraries/libraqm/README b/libraries/libraqm/README
index 83775a6d7d..8c2befc13a 100644
--- a/libraries/libraqm/README
+++ b/libraries/libraqm/README
@@ -1,6 +1,6 @@
Raqm is a small library that encapsulates the logic for complex text
layout and provides a convenient API.
-It currently provides bidirectional text support (using FriBiDi), shaping
-(using HarfBuzz), and proper script itemization. As a result, Raqm can
-support most writing systems covered by Unicode.
+It currently provides bidirectional text support (using FriBiDi),
+shaping (using HarfBuzz), and proper script itemization. As a result,
+Raqm can support most writing systems covered by Unicode.
diff --git a/libraries/libraqm/libraqm.SlackBuild b/libraries/libraqm/libraqm.SlackBuild
index a59dcbfe5e..9f8d0130ff 100644
--- a/libraries/libraqm/libraqm.SlackBuild
+++ b/libraries/libraqm/libraqm.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for libraqm
@@ -22,11 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=libraqm
SRCNAM=raqm
VERSION=${VERSION:-0.5.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -95,8 +105,10 @@ cp -a \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE