mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-07 20:27:02 +01:00
libraries/nx-libs: Updated for version 3.5.99.20_1.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
6f4f5b33fb
commit
7df580653f
5 changed files with 26 additions and 36 deletions
|
@ -1 +1 @@
|
|||
NX libraries by NoMachine for X Display redistributed
|
||||
NX libraries by NoMachine for X Display redistributed.
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
|
@ -3,6 +3,7 @@
|
|||
# Slackware build script for nx-libs
|
||||
|
||||
# Copyright 2015 Elvio "HelLViS69" Basello <hellvis69@gmail.com>
|
||||
# Copyright 2019 Marcus Moeller <mmoeller@faircomputer.ch>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,13 +24,14 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=nx-libs
|
||||
VERSION=${VERSION:-3.5.0.32}
|
||||
VERSION=${VERSION:-3.5.99.20_1}
|
||||
SRCVERSION=$(echo $VERSION | tr _ - )
|
||||
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 +42,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"
|
||||
|
@ -59,9 +61,9 @@ set -e
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION-full.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
rm -rf $PRGNAM-$SRCVERSION
|
||||
tar xvf $CWD/$PRGNAM-$SRCVERSION-full.tar.gz
|
||||
cd $PRGNAM-$SRCVERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
|
@ -69,25 +71,17 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
make
|
||||
# Fix man install dir
|
||||
sed -i "s|share/man|man|g" Makefile
|
||||
|
||||
# Variables PREFIX, LIBDIR, NXLIBDIR, and X2GOLIBDIR are used by the top level
|
||||
# makefile. Variables prefix and libdir are used by makefiles in some of the
|
||||
# subdirectories.
|
||||
make install \
|
||||
PREFIX=/usr \
|
||||
LIBDIR=/usr/lib${LIBDIRSUFFIX} \
|
||||
NXLIBDIR=/usr/lib${LIBDIRSUFFIX}/nx \
|
||||
X2GOLIBDIR=/usr/lib${LIBDIRSUFFIX}/x2go \
|
||||
prefix=/usr \
|
||||
libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
DESTDIR=$PKG
|
||||
make CONFIGURE="./configure --libdir=/usr/lib${LIBDIRSUFFIX} --prefix=/usr --mandir=/usr/man" PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX}
|
||||
|
||||
mv $PKG/usr/share/man/ $PKG/usr/
|
||||
make install PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG
|
||||
|
||||
# Fix library search paths in scripts.
|
||||
sed -i "s#/usr/lib#/usr/lib${LIBDIRSUFFIX}#" $PKG/usr/bin/*
|
||||
sed -i "s#/usr/local/lib#/usr/local/lib${LIBDIRSUFFIX}#" $PKG/usr/bin/*
|
||||
# Cleanups: remove static libs/overlapping headers and fix permissions
|
||||
rm $PKG/usr/lib${LIBDIRSUFFIX}/*.a
|
||||
rm -fR $PKG/usr/include/GL
|
||||
chmod 0755 $PKG/usr/lib${LIBDIRSUFFIX}/lib*.so*
|
||||
|
||||
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
|
||||
|
@ -97,7 +91,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="nx-libs"
|
||||
VERSION="3.5.0.32"
|
||||
VERSION="3.5.99.20-1"
|
||||
HOMEPAGE="http://www.x2go.org"
|
||||
DOWNLOAD="http://code.x2go.org/releases/source/nx-libs/nx-libs-3.5.0.32-full.tar.gz"
|
||||
MD5SUM="09d99d530cb602f96367cef0f352a6fc"
|
||||
DOWNLOAD="https://code.x2go.org/releases/source/nx-libs/nx-libs-3.5.99.20-1-full.tar.gz"
|
||||
MD5SUM="15ab120295db892369cf9eb90f650006"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Elvio Basello (HelLViS69)"
|
||||
EMAIL="hellvis69@gmail.com"
|
||||
MAINTAINER="Marcus Moeller"
|
||||
EMAIL="mmoeller@faircomputer.ch"
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
|-----handy-ruler------------------------------------------------------|
|
||||
nx-libs: nx-libs (NX libraries by NoMachine for X Display)
|
||||
nx-libs:
|
||||
nx-libs: NX libraries by NoMachine for X Display redistributed
|
||||
nx-libs:
|
||||
nx-libs:
|
||||
nx-libs: NX libraries by NoMachine for X Display redistributed.
|
||||
nx-libs:
|
||||
nx-libs: homepage: http://www.x2go.org
|
||||
nx-libs:
|
||||
nx-libs:
|
||||
nx-libs:
|
||||
|
|
Loading…
Reference in a new issue