diff options
-rw-r--r-- | office/pdf2djvu/README | 3 | ||||
-rw-r--r-- | office/pdf2djvu/pdf2djvu.SlackBuild | 32 | ||||
-rw-r--r-- | office/pdf2djvu/pdf2djvu.info | 14 | ||||
-rw-r--r-- | office/pdf2djvu/slack-desc | 2 |
4 files changed, 19 insertions, 32 deletions
diff --git a/office/pdf2djvu/README b/office/pdf2djvu/README index 3ff811e6ebc2..e5aa3560490e 100644 --- a/office/pdf2djvu/README +++ b/office/pdf2djvu/README @@ -7,6 +7,3 @@ It's able to extract: * hyperlinks * document outline (bookmarks) * metadata (including XMP metadata) - -Note: nose is only required to run the python test suite. It is not a -run-time dependency and can be safely removed after pdf2djvu is built. diff --git a/office/pdf2djvu/pdf2djvu.SlackBuild b/office/pdf2djvu/pdf2djvu.SlackBuild index 78fdabb85f18..f685c6720190 100644 --- a/office/pdf2djvu/pdf2djvu.SlackBuild +++ b/office/pdf2djvu/pdf2djvu.SlackBuild @@ -4,6 +4,7 @@ # Copyright 2010-2012 Binh Nguyen <binhvng@gmail.com> # Copyright 2015-2018 Brenton Earl <brent@exitstatusone.com> +# Copyright 2023 Alexander Verbovetsky, Moscow, Russia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +24,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# 20220218 bkw: Modified by SlackBuilds.org: updated to v0.9.18.2 as -# the previous version wouldn't build on Slackware 15.0. - cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pdf2djvu -VERSION=${VERSION:-0.9.18.2} +VERSION=${VERSION:-0.9.19} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -65,7 +63,7 @@ else LIBDIRSUFFIX="" fi -set -eu +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -80,18 +78,6 @@ 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 {} \+ -sed -i 's/poppler-splash/poppler/g' configure - -# 20220218 bkw: grrr. no option to disable -Werror, not even by -# overriding in CFLAGS/CXXFLAGS. for gcc-11.2.0, it doesn't matter, -# but this future-proofs us against the day post-15.0 -current -# gets a gcc upgrade: -sed -i '/-Werror/d' configure.ac -autoreconf -if - -# 20220218 bkw: no install-strip target, but this worx. -SLKCFLAGS+=" -Wl,-s" - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -100,19 +86,23 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ - --infodir=/usr/info \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --localedir=/usr/share/locale \ --build=$ARCH-slackware-linux make -make test make install DESTDIR=$PKG -gzip -9 $PKG/usr/man/{man1,??/man1}/*.1 +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +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 + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a doc/README doc/COPYING doc/changelog $PKG/usr/doc/$PRGNAM-$VERSION +cp -a doc/README doc/djvudigital doc/changelog $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/office/pdf2djvu/pdf2djvu.info b/office/pdf2djvu/pdf2djvu.info index cf9b49e3cc72..a0c8a1d7f3ef 100644 --- a/office/pdf2djvu/pdf2djvu.info +++ b/office/pdf2djvu/pdf2djvu.info @@ -1,10 +1,10 @@ PRGNAM="pdf2djvu" -VERSION="0.9.18.2" -HOMEPAGE="https://jwilk.net/software/pdf2djvu" -DOWNLOAD="https://github.com/jwilk/pdf2djvu/releases/download/0.9.18.2/pdf2djvu-0.9.18.2.tar.xz" -MD5SUM="2535eba8fb7f74d1ba8f942cd4fc0414" +VERSION="0.9.19" +HOMEPAGE="https://github.com/jwilk-archive/pdf2djvu" +DOWNLOAD="https://github.com/jwilk-archive/pdf2djvu/releases/download/0.9.19/pdf2djvu-0.9.19.tar.xz" +MD5SUM="b1059b9a915efc81aabcb19fabcbcbcf" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="nose GraphicsMagick" -MAINTAINER="Brenton Earl" -EMAIL="brent@exitstatusone.com" +REQUIRES="GraphicsMagick" +MAINTAINER="Alexander Verbovetsky" +EMAIL="alik@ejik.org" diff --git a/office/pdf2djvu/slack-desc b/office/pdf2djvu/slack-desc index cc05de4a8bcf..0dcdd39d1fa1 100644 --- a/office/pdf2djvu/slack-desc +++ b/office/pdf2djvu/slack-desc @@ -15,5 +15,5 @@ pdf2djvu: * hyperlinks pdf2djvu: * document outline (bookmarks) pdf2djvu: * metadata (including XMP metadata) pdf2djvu: -pdf2djvu: Homepage: https://jwilk.net/software/pdf2djvu +pdf2djvu: Homepage: https://github.com/jwilk-archive/pdf2djvu pdf2djvu: |