summaryrefslogtreecommitdiffstats
path: root/libraries/gsm/gsm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/gsm/gsm.SlackBuild')
-rw-r--r--libraries/gsm/gsm.SlackBuild21
1 files changed, 15 insertions, 6 deletions
diff --git a/libraries/gsm/gsm.SlackBuild b/libraries/gsm/gsm.SlackBuild
index 554b57b65a..5ab252f713 100644
--- a/libraries/gsm/gsm.SlackBuild
+++ b/libraries/gsm/gsm.SlackBuild
@@ -26,12 +26,16 @@
# - add -j1 to the 'make install' command. without this, the tcat
# binary wasn't getting installed.
# - i486 => i586.
+# 20220619 tim dickson: updated to 1.0.19. source url and homepage updated, and take over maintainership..
+# patched patch, removed rm error messages and fixed script as
+# version labling in source is modified.
+#note to self: update patching to sed or similar for next release.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gsm
-VERSION=${VERSION:-1.0.13}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-1.0.19}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -72,8 +76,10 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+ALTVER=`echo $VERSION|awk -F"." '{print $1 "." $2 "-pl" $3 }'`
+rm -rf $PRGNAM-$ALTVER
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$ALTVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -81,10 +87,13 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
-# Patches ripped off from gentoo...
-patch -p1 < $CWD/patches/gsm-1.0.13-shared.patch
+# Patches ripped off from gentoo... (one is post updated by me)
+patch -p1 < $CWD/patches/gsm-1.0.19-shared.patch
patch -p1 < $CWD/patches/gsm-1.0.12-memcpy.patch
patch -p1 < $CWD/patches/gsm-1.0.12-64bit.patch
+#patch makefile to remove rm error messages
+sed -i '/^RMFLAGS/ c\RMFLAGS = -f' Makefile
+sed -i 's/-rm \$\@/-rm \$\(RMFLAGS\) \$\@/g' Makefile
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX