aboutsummaryrefslogtreecommitdiff
path: root/libraries/mygpoclient/mygpoclient.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/mygpoclient/mygpoclient.SlackBuild')
-rw-r--r--libraries/mygpoclient/mygpoclient.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/libraries/mygpoclient/mygpoclient.SlackBuild b/libraries/mygpoclient/mygpoclient.SlackBuild
index cf8b1613930b..7e9d076ac055 100644
--- a/libraries/mygpoclient/mygpoclient.SlackBuild
+++ b/libraries/mygpoclient/mygpoclient.SlackBuild
@@ -4,14 +4,16 @@
# Written by Luis Henrique <lmello.009@gmail.com>
+# Edited by Chris Farrell <timcowchip@gorge.net>
+
PRGNAM=mygpoclient
-VERSION=${VERSION:-1.6}
+VERSION=${VERSION:-1.8}
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
@@ -22,8 +24,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"
@@ -51,14 +53,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-python setup.py install --root=$PKG
+sed -i -e 's:share/man/man1:man/man1:' setup.py
+
+python3 setup.py install --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING DEPENDENCIES NEWS PKG-INFO README \
+ AUTHORS COPYING NEWS PKG-INFO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild