mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
academic/mendeleydesktop: Fix ARCH.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
bdf90e2ec4
commit
8908e1843d
1 changed files with 8 additions and 10 deletions
|
@ -41,9 +41,6 @@ if [ -z "$ARCH" ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
# the name of the created package would be, and then exit. This information
|
||||
# could be useful to other scripts.
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
|
@ -53,8 +50,9 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
SRCARCH="$ARCH"
|
||||
if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
|
||||
ARCH="i486" # mendeleydesktop doesn't have i586/i686 pre-builds.
|
||||
SRCARCH="i486" # mendeleydesktop doesn't have i586/i686 pre-builds.
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
LIBDIRSUFFIX="64"
|
||||
|
@ -68,15 +66,15 @@ set -e
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION-linux-$ARCH
|
||||
tar xvf $CWD/$PRGNAM-$VERSION-linux-${ARCH}.tar.bz2
|
||||
cd $PRGNAM-$VERSION-linux-$ARCH
|
||||
rm -rf $PRGNAM-$VERSION-linux-$SRCARCH
|
||||
tar xvf $CWD/$PRGNAM-$VERSION-linux-${SRCARCH}.tar.bz2
|
||||
cd $PRGNAM-$VERSION-linux-$SRCARCH
|
||||
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 \
|
||||
-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 {} \;
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
|
||||
|
||||
# removing QT5 bundled libraries
|
||||
if [ "${SYSTEM_QT5:-yes}" != "no" ]; then
|
||||
|
@ -106,7 +104,7 @@ MENDELEY_LIB=lib
|
|||
LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:\${MENDELEY_BASE}/\${MENDELEY_LIB}
|
||||
export LD_LIBRARY_PATH
|
||||
cd /opt/mendeleydesktop/lib/mendeleydesktop/libexec
|
||||
./mendeleydesktop.$ARCH \$@
|
||||
./mendeleydesktop.$SRCARCH \$@
|
||||
EOF
|
||||
chmod 755 $PKG/usr/bin/$PRGNAM
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue