summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-04-15 19:03:15 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-04-19 10:52:25 +0700
commit676df5dc8337e0edad562a966f0777a36fc570ce (patch)
tree9b9055d5ee2a4d96b8b837c28c5e32438b76ba15
parentdcffbe97a4c34bf339972954aaaac6d9c19040fb (diff)
downloadslackbuilds-676df5dc8337e0edad562a966f0777a36fc570ce.tar.gz
libraries/SDL2_ttf: Updated for version 2.0.15, new maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/SDL2_ttf/README2
-rw-r--r--libraries/SDL2_ttf/SDL2_ttf.SlackBuild26
-rw-r--r--libraries/SDL2_ttf/SDL2_ttf.info10
3 files changed, 20 insertions, 18 deletions
diff --git a/libraries/SDL2_ttf/README b/libraries/SDL2_ttf/README
index ac5e99801e..156d760c94 100644
--- a/libraries/SDL2_ttf/README
+++ b/libraries/SDL2_ttf/README
@@ -1,3 +1,5 @@
+SDL2_ttf (SDL2 truetype font library)
+
This is a sample library which allows you to use TrueType fonts
in your SDL2 applications.
diff --git a/libraries/SDL2_ttf/SDL2_ttf.SlackBuild b/libraries/SDL2_ttf/SDL2_ttf.SlackBuild
index fb3177ba19..14ba2ea487 100644
--- a/libraries/SDL2_ttf/SDL2_ttf.SlackBuild
+++ b/libraries/SDL2_ttf/SDL2_ttf.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for SDL2_ttf
# Copyright 2013 Dugan Chen Canada
+# Copyright 2020 B. Watson
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,14 +23,19 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20200415 bkw:
+# - take over maintenance
+# - update for v2.0.15
+# - i486 => i586
+
PRGNAM=SDL2_ttf
-VERSION=${VERSION:-2.0.14}
+VERSION=${VERSION:-2.0.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +46,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"
@@ -63,11 +69,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 {} \;
+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" \
@@ -82,10 +85,7 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install 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 install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/libraries/SDL2_ttf/SDL2_ttf.info b/libraries/SDL2_ttf/SDL2_ttf.info
index e81eed0c1d..cf8310556c 100644
--- a/libraries/SDL2_ttf/SDL2_ttf.info
+++ b/libraries/SDL2_ttf/SDL2_ttf.info
@@ -1,10 +1,10 @@
PRGNAM="SDL2_ttf"
-VERSION="2.0.14"
+VERSION="2.0.15"
HOMEPAGE="https://www.libsdl.org/projects/SDL_ttf/"
-DOWNLOAD="https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz"
-MD5SUM="e53c05e1e7f1382c316afd6c763388b1"
+DOWNLOAD="https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.15.tar.gz"
+MD5SUM="04fe06ff7623d7bdcb704e82f5f88391"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="SDL2"
-MAINTAINER="Dugan Chen"
-EMAIL="thedoogster [at] gmail [dot] com"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"