Browse Source

xap/zotero: Upgraded to zotero-5.0.23.

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
d2078d8a80
  1. 1
      xap/zotero/Zotero-4.0.29.10_linux-x86_64.tar.bz2.sha1
  2. 1
      xap/zotero/Zotero-5.0.23_linux-x86_64.tar.bz2.sha256
  3. 19
      xap/zotero/zotero.SlackBuild

1
xap/zotero/Zotero-4.0.29.10_linux-x86_64.tar.bz2.sha1

@ -1 +0,0 @@
3864ec1de9037dc72e1b33a9a3eb7a767445c560 Zotero-4.0.29.10_linux-x86_64.tar.bz2

1
xap/zotero/Zotero-5.0.23_linux-x86_64.tar.bz2.sha256

@ -0,0 +1 @@
179e9bc43895e714e5865cd5cf033592b938d903c79bece5cf208b0164576af8 Zotero-5.0.23_linux-x86_64.tar.bz2

19
xap/zotero/zotero.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2012,2013,2014,2016 Damien Goutte-Gattat
# Copyright (C) 2012,2013,2014,2016,2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -30,9 +30,9 @@ ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
# Source package infos
NAMESRC=${NAMESRC:-Zotero}
VERSION=${VERSION:-4.0.29.10}
VERSION=${VERSION:-5.0.23}
ARCHIVE=${ARCHIVE:-$NAMESRC-${VERSION}_linux-$ARCH.tar.bz2}
WGET=${WGET:-http://download.zotero.org/standalone/$VERSION/$ARCHIVE}
WGET=${WGET:-http://download.zotero.org/client/release/$VERSION/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-zotero}
@ -62,7 +62,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Extract
@ -72,23 +72,20 @@ echo "Extracting $ARCHIVE..."
tar xf $CWD/$ARCHIVE
mv $NAME $NAMEPKG-$VERSION
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
mv $NAMEPKG-$VERSION/COPYING $PKG/usr/doc/$NAMEPKG-$VERSION/
mv $NAMEPKG-$VERSION/README.md $PKG/usr/doc/$NAMEPKG-$VERSION/
mkdir -p $PKG/usr/bin
cat > $PKG/usr/bin/zotero <<EOS
#!/bin/sh
exec /usr/lib$LIBDIRSUFFIX/$NAMEPKG-$VERSION/zotero
ulimit -n 4096
exec /usr/lib$LIBDIRSUFFIX/$NAMEPKG-$VERSION/zotero-bin -app /usr/lib$LIBDIRSUFFIX/$NAMEPKG-$VERSION/application.ini \$*
EOS
chmod 755 $PKG/usr/bin/zotero
install -D -m 644 $CWD/zotero.desktop $PKG/usr/share/applications/zotero.desktop
# Use system libp11-kit.so library instead of libnssckbi.so
rm $PKG/usr/lib$LIBDIRSUFFIX/$NAMEPKG-$VERSION/xulrunner/libnssckbi.so
rm $PKG/usr/lib$LIBDIRSUFFIX/$NAMEPKG-$VERSION/libnssckbi.so
ln -s /usr/lib$LIBDIRSUFFIX/libp11-kit.so \
$PKG/usr/lib$LIBDIRSUFFIX/$NAMEPKG-$VERSION/xulrunner/libnssckbi.so
$PKG/usr/lib$LIBDIRSUFFIX/$NAMEPKG-$VERSION/libnssckbi.so
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save