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.SlackBuild25
1 files changed, 16 insertions, 9 deletions
diff --git a/libraries/gsm/gsm.SlackBuild b/libraries/gsm/gsm.SlackBuild
index 5ab252f713..b09b228790 100644
--- a/libraries/gsm/gsm.SlackBuild
+++ b/libraries/gsm/gsm.SlackBuild
@@ -30,11 +30,13 @@
# 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.
+# 20220722 tim dickson: got rm patched added upstream. combined larger patch
+# into easier to maintain patch, and a few sed commands.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gsm
-VERSION=${VERSION:-1.0.19}
+VERSION=${VERSION:-1.0.20}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -87,13 +89,17 @@ 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... (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
+#the following patches are required but won't be fixed upstream due
+#to the fact that the library supports ancient 16bit processors
+#and he doesn't have all the hardware to test with any more.
+#"shared" patch (modified from a gentoo patch).
+patch < $CWD/Makefile.patch
+#next shouldn't be needed as config.h defines it (in inc/config.h)
+#patch -p1 < $CWD/patches/gsm-1.0.12-memcpy.patch
+#third patch has been replaced with a couple of sed's
+sed -i 's/typedef long/typedef int/g' inc/private.h
+sed -i 's/typedef unsigned long/typedef unsigned int/g' inc/private.h
+
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX
@@ -101,9 +107,10 @@ mkdir -p $PKG/usr/include/{gsm,libgsm}
mkdir -p $PKG/usr/man/man{1,3}
# Parallel builds are broken
-make CCINC="$SLKCFLAGS" -j1
+make CCINC="$SLKCFLAGS" VER="$VERSION" -j1
make -j1 install \
INSTALL_ROOT=$PKG/usr \
+ VER="$VERSION" \
GSM_INSTALL_LIB=$PKG/usr/lib$LIBDIRSUFFIX \
GSM_INSTALL_INC=$PKG/usr/include/gsm \
GSM_INSTALL_MAN=$PKG/usr/man/man3 \