mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
office/pdfstudio: Updated for version 2024.0.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
bfc449d155
commit
1e190f2784
4 changed files with 68 additions and 67 deletions
|
@ -1,7 +1,7 @@
|
|||
PDF Studio is an all-in-one, easy to use PDF editor that provides all
|
||||
PDF features needed at a fraction of the cost of Adobe Acrobat and other
|
||||
PDF editors. PDF Studio maintains full compatibility with the PDF
|
||||
Standard.
|
||||
PDF Studio is an easy to use, full-featured PDF editing software that
|
||||
is a reliable alternative to Adobe Acrobat and provides all PDF
|
||||
functions needed at a fraction of the cost. PDF Studio maintains full
|
||||
compatibility with the PDF Standard.
|
||||
|
||||
PDF Studio is a commercial Java based program. It is available in
|
||||
Standard and Pro editions, and also as a free demo. The demo version
|
||||
|
@ -11,33 +11,33 @@ Key features of PDF Studio:
|
|||
|
||||
* Create PDFs
|
||||
* Scan-To-PDF
|
||||
* OCR (Text Recognition)
|
||||
* Annotate and Markup PDFs
|
||||
* Precision Measuring Tools
|
||||
* Fast Sign
|
||||
* Fill In & Save PDF Forms
|
||||
* Secure Documents
|
||||
* Append / Delete Pages
|
||||
* Advanced PDF Splitting & Merging
|
||||
* Create Watermarks, Headers, Footers
|
||||
* Loupe, Pan & Zoom, Rulers, etc...
|
||||
* Document Storage Integrations
|
||||
* Docusign Integration
|
||||
* XodoSign Integration
|
||||
* Supports the new PDF 2.0 standards
|
||||
* Interactive Form Designer
|
||||
* OCR (Text Recognition)
|
||||
* Content Editing (Text and Images)
|
||||
* Redact & Sanitize PDFs
|
||||
* Compare PDFs
|
||||
* Action Wizard for Task Automation
|
||||
* Batch Process Multiple PDFs
|
||||
* Convert To & From Microsoft Files
|
||||
* Convert To HTML
|
||||
* Redaction Tools
|
||||
* Sanitize PDFs
|
||||
* Overlay Compare PDFs
|
||||
* Optimize PDFs
|
||||
* Digitally Sign PDFs
|
||||
* Advanced PDF Splitting & Merging
|
||||
* Batch Process Multiple PDFs
|
||||
* Tag PDFs for Accessibility (PDF/UA)
|
||||
* PDF/A Validation / Conversion
|
||||
* Advanced Imposition & Printer
|
||||
* PDF/A, PDF/X, PDF/UA Support
|
||||
* Print & Pre-Press Features
|
||||
* Many More Tools...
|
||||
|
||||
By default PDF Studio uses the system-wide Java.
|
||||
Java comes bundled with the PDF Studio.
|
||||
|
||||
If you pass OWNJAVA=yes to the SlackBuild script:
|
||||
OWNJAVA=yes ./pdfstudio.SlackBuild
|
||||
a version of Java that comes packaged with PDF Studio will be installed
|
||||
under the PDF Studio installation directory, this Java will not be used
|
||||
by other programs.
|
||||
OCR and scanning are not available in 32 bit version.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for pdfstudio
|
||||
|
||||
# Copyright 2017-2021, Alexander Verbovetsky, Moscow, Russia
|
||||
# Copyright 2017-2024, Alexander Verbovetsky, Moscow, Russia
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -25,7 +25,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=pdfstudio
|
||||
VERSION=${VERSION:-2020.4.0}
|
||||
VERSION=${VERSION:-2024.0.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -39,16 +39,6 @@ if [ -z "$ARCH" ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
case "$ARCH" in
|
||||
i?86) DEBARCH="" ;;
|
||||
x86_64) DEBARCH=64 ;;
|
||||
*) printf "\n$ARCH is unsupported for the PDF Studio.\n\n"
|
||||
exit 1 ;;
|
||||
esac
|
||||
|
||||
# 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
|
||||
|
@ -63,38 +53,40 @@ set -e
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $PKG
|
||||
ar p $CWD/PDFStudio_v${VERSION//./_}_linux${DEBARCH}.deb data.tar.gz | tar xvz
|
||||
ar p $CWD/PDFStudio_v${VERSION//./_}_linux64.deb data.tar.gz | tar xvz
|
||||
case "$ARCH" in
|
||||
x86_64) ;;
|
||||
*) rm -f opt/$PRGNAM$YEAR/lib/libSaneLib_64.so
|
||||
rm -rf opt/$PRGNAM$YEAR/lib/swt
|
||||
rm -rf opt/$PRGNAM$YEAR/lib/tess
|
||||
rm -rf opt/$PRGNAM$YEAR/jre
|
||||
tar xvf $CWD/bellsoft-jre*-linux-*.tar.gz
|
||||
mv jre* opt/$PRGNAM$YEAR/jre
|
||||
esac
|
||||
mkdir -p usr/bin
|
||||
ln -s /opt/pdfstudio${YEAR}/pdfstudio${YEAR} usr/bin/pdfstudio
|
||||
ln -s /opt/$PRGNAM$YEAR/$PRGNAM$YEAR $PKG/usr/bin/$PRGNAM
|
||||
|
||||
mkdir -p usr/share/applications
|
||||
echo -e "[Desktop Entry]
|
||||
cat > usr/share/applications/$PRGNAM$YEAR.desktop << EOF
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=PDF Studio ${YEAR}
|
||||
Exec=/bin/sh "/opt/pdfstudio${YEAR}/pdfstudio${YEAR}"
|
||||
Icon=/opt/pdfstudio${YEAR}/.install4j/pdfstudio${YEAR}.png
|
||||
Name=PDF Studio $YEAR
|
||||
Exec=/bin/sh "/opt/$PRGNAM$YEAR/$PRGNAM$YEAR"
|
||||
Icon=/opt/$PRGNAM$YEAR/.install4j/$PRGNAM$YEAR.png
|
||||
Terminal=false
|
||||
Categories=Office;
|
||||
MimeType=application/pdf;" \
|
||||
> usr/share/applications/${PRGNAM}${YEAR}.desktop
|
||||
MimeType=application/pdf;
|
||||
EOF
|
||||
|
||||
mkdir -p usr/doc/$PRGNAM-$VERSION
|
||||
rm -f opt/$PRGNAM$YEAR/updater
|
||||
rm -f opt/$PRGNAM$YEAR/pdfstudiosu
|
||||
|
||||
if [ "${OWNJAVA:-no}" = "yes" ]; then
|
||||
cd opt/pdfstudio${YEAR}/jre
|
||||
for pack_file in lib/*.jar.pack; do
|
||||
jar_file=$( echo "$pack_file" | awk '{ print substr($0,1,length-5) }' )
|
||||
bin/unpack200 -r "$pack_file" "$jar_file"
|
||||
done
|
||||
for pack_file in lib/ext/*.jar.pack; do
|
||||
jar_file=$( echo "$pack_file" | awk '{ print substr($0,1,length-5) }' )
|
||||
bin/unpack200 -r "$pack_file" "$jar_file"
|
||||
done
|
||||
bin/java -Xshare:dump &>/dev/null
|
||||
cd $PKG
|
||||
else
|
||||
rm -rf opt/pdfstudio${YEAR}/jre
|
||||
fi
|
||||
sed -i -e \
|
||||
's|-include-options.*user\.vmoptions|-include-options \${HOME}/.config/PDFStudio/user.vmoptions|' \
|
||||
opt/$PRGNAM$YEAR/$PRGNAM$YEAR.vmoptions
|
||||
|
||||
find -L opt/$PRGNAM$YEAR/lib opt/$PRGNAM$YEAR/jre/lib \
|
||||
-type f -name "*.so" -exec chmod 755 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
|
@ -104,8 +96,15 @@ find -L . \
|
|||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
chmod 0755 $PKG
|
||||
|
||||
opt/$PRGNAM$YEAR/jre/bin/java -Xshare:dump &>/dev/null
|
||||
|
||||
find $PKG -path $PKG/opt/$PRGNAM$YEAR/jre -prune -o -print0 \
|
||||
| xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p usr/doc/$PRGNAM-$VERSION
|
||||
for f in additionalcopyrights.html license.html; do
|
||||
unzip -p opt/pdfstudio${YEAR}/lib/pdfstudio.jar \
|
||||
unzip -p opt/$PRGNAM$YEAR/lib/$PRGNAM.jar \
|
||||
resources/$f > usr/doc/$PRGNAM-$VERSION/$f
|
||||
done
|
||||
cat $CWD/$PRGNAM.SlackBuild > usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
PRGNAM="pdfstudio"
|
||||
VERSION="2020.4.0"
|
||||
VERSION="2024.0.1"
|
||||
HOMEPAGE="https://www.qoppa.com/pdfstudio/"
|
||||
DOWNLOAD="https://download.qoppa.com/pdfstudio/v2020/PDFStudio_v2020_4_0_linux.deb"
|
||||
MD5SUM="54b767608e88afdeeeb7292c278624c2"
|
||||
DOWNLOAD_x86_64="https://download.qoppa.com/pdfstudio/v2020/PDFStudio_v2020_4_0_linux64.deb"
|
||||
MD5SUM_x86_64="d4b8f062f90d191a7fca0b003101e772"
|
||||
REQUIRES="zulu-openjdk8"
|
||||
DOWNLOAD="https://download.qoppa.com/pdfstudio/v2024/PDFStudio_v2024_0_1_linux64.deb \
|
||||
https://github.com/bell-sw/Liberica/releases/download/17.0.12+10/bellsoft-jre17.0.12+10-linux-i586.tar.gz"
|
||||
MD5SUM="1f676dc50e68b3921b96669c07e72560 \
|
||||
8eedc1b804595be6efb27957ff1c47b7"
|
||||
DOWNLOAD_x86_64="https://download.qoppa.com/pdfstudio/v2024/PDFStudio_v2024_0_1_linux64.deb"
|
||||
MD5SUM_x86_64="1f676dc50e68b3921b96669c07e72560"
|
||||
REQUIRES=""
|
||||
MAINTAINER="Alexander Verbovetsky"
|
||||
EMAIL="alik@ejik.org"
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
|-----handy-ruler------------------------------------------------------|
|
||||
pdfstudio: pdfstudio (PDF editor)
|
||||
pdfstudio:
|
||||
pdfstudio: PDF Studio is an all-in-one, easy to use PDF editor that provides all
|
||||
pdfstudio: PDF features needed at a fraction of the cost of Adobe Acrobat and
|
||||
pdfstudio: other PDF editors. PDF Studio maintains full compatibility with the
|
||||
pdfstudio: PDF Standard.
|
||||
pdfstudio: PDF Studio is an easy to use, full-featured PDF editing software that
|
||||
pdfstudio: is a reliable alternative to Adobe Acrobat and provides all PDF
|
||||
pdfstudio: functions needed at a fraction of the cost. PDF Studio maintains full
|
||||
pdfstudio: compatibility with the PDF Standard.
|
||||
pdfstudio:
|
||||
pdfstudio: PDF Studio is a commercial Java based program. It is available in
|
||||
pdfstudio: Standard and Pro editions, and also as a free demo.
|
||||
|
|
Loading…
Reference in a new issue