diff options
Diffstat (limited to 'office/apvlv')
-rw-r--r-- | office/apvlv/README | 3 | ||||
-rw-r--r-- | office/apvlv/apvlv.SlackBuild | 30 | ||||
-rw-r--r-- | office/apvlv/apvlv.info | 14 | ||||
-rw-r--r-- | office/apvlv/slack-desc | 2 | ||||
-rw-r--r-- | office/apvlv/use_dist_manpdf.patch | 18 |
5 files changed, 45 insertions, 22 deletions
diff --git a/office/apvlv/README b/office/apvlv/README index 4dc2a8c2c8..fa71243afd 100644 --- a/office/apvlv/README +++ b/office/apvlv/README @@ -7,4 +7,5 @@ viewing a directory as contents of a pdf document. Press 'k' or 'j' to move selected up or down, 'h' or 'l' to collapse or expand a dir, and pressing 't' will open the selected document in a new tab. -This SlackBuild disables UMD file support. +This SlackBuild additionally enables DjVu support (text file support is +provided by default). diff --git a/office/apvlv/apvlv.SlackBuild b/office/apvlv/apvlv.SlackBuild index 723a7a96bd..6e8f01de6f 100644 --- a/office/apvlv/apvlv.SlackBuild +++ b/office/apvlv/apvlv.SlackBuild @@ -6,6 +6,7 @@ # Took some ideas/parts from an older apvlv SlackBuild form Eugene Wissner: # Copyright 2010 Eugene Wissner <belka.ew@gmail.com> +# Copyright 2024 Isaac Yu <isaacyu@protonmail.com> # All rights reserved. # # Permission to use, copy, modify, and distribute this software for any purpose @@ -30,11 +31,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=apvlv -VERSION=${VERSION:-20160627_9ab7626} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.6.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +SRCVER=$VERSION-final + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -71,9 +74,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz +cd $PRGNAM-$SRCVER chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -81,31 +84,32 @@ 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 {} \+ -# 20220217 bkw: poppler API change... this include no longer exists, and -# it turns out it was redundant anyway. -sed -i '/#include *<goo\/gtypes/d' src/ApvlvPdf.cc +# Fix man directory +sed -i "s,apvlv\.1 TYPE MAN,apvlv\.1 DESTINATION \${CMAKE_INSTALL_PREFIX}/man/man1," CMakeLists.txt + +# Use the tarball's Startup.pdf +patch -p1 < $CWD/use_dist_manpdf.patch mkdir -p build cd build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_CXX_FLAGS_RELEASE="$SLKCFLAGS -fpermissive" \ + -DCMAKE_CXX_FLAGS_RELEASE="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DAPVLV_WITH_UMD=false \ - -DMANDIR=/usr/man \ + -DAPVLV_WITH_DJVU=yes \ -DDOCDIR=/usr/doc/$PRGNAM-$VERSION make VERBOSE=1 make install/strip DESTDIR=$PKG cd .. -gzip -9 $PKG/usr/man/man*/* +gzip -9 $PKG/usr/man/man1/apvlv.1 mv $PKG/etc/apvlvrc $PKG/etc/apvlvrc.new # Leave the icons in docdir - that path is hardcoded in apvlv binary mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS COPYING NEWS README THANKS TODO apvlvrc.example \ + AUTHORS COPYING NEWS README.md THANKS TODO Startup.pdf apvlvrc.example \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/office/apvlv/apvlv.info b/office/apvlv/apvlv.info index 4df540a600..422ccc3589 100644 --- a/office/apvlv/apvlv.info +++ b/office/apvlv/apvlv.info @@ -1,10 +1,10 @@ PRGNAM="apvlv" -VERSION="20160627_9ab7626" -HOMEPAGE="http://naihe2010.github.com/apvlv/" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/apvlv-20160627_9ab7626.tar.xz" -MD5SUM="e7a285ca7ac4d3abc1842519c0f20987" +VERSION="0.6.0" +HOMEPAGE="https://github.com/naihe2010/apvlv/" +DOWNLOAD="https://github.com/naihe2010/apvlv/archive/v0.6.0-final/apvlv-0.6.0-final.tar.gz" +MD5SUM="303470053f3a35bbb7eb8c76160188ea" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Arne Welzel" -EMAIL="arne.welzel@googlemail.com" +REQUIRES="webkit2gtk" +MAINTAINER="Isaac Yu" +EMAIL="isaacyu@protonmail.com" diff --git a/office/apvlv/slack-desc b/office/apvlv/slack-desc index d648d387e1..56fbc0b579 100644 --- a/office/apvlv/slack-desc +++ b/office/apvlv/slack-desc @@ -11,7 +11,7 @@ apvlv: apvlv: Apvlv is a PDF viewer based on GTK+2 and poppler which uses apvlv: Vim like keybindings. apvlv: -apvlv: Homepage: http://naihe2010.github.com/apvlv/ +apvlv: Homepage: https://github.com/naihe2010/apvlv/ apvlv: apvlv: apvlv: diff --git a/office/apvlv/use_dist_manpdf.patch b/office/apvlv/use_dist_manpdf.patch new file mode 100644 index 0000000000..45e047df30 --- /dev/null +++ b/office/apvlv/use_dist_manpdf.patch @@ -0,0 +1,18 @@ +An up-to-date Startup.pdf is shipped with the dist, so just use that. +Patch taken from Void Linux: +https://github.com/void-linux/void-packages/blob/master/srcpkgs/apvlv/patches/use_dist_manpdf.patch + +diff -rup CMakeLists.txt.orig CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -76,10 +76,6 @@ IF (WIN32) + INSTALL(DIRECTORY icons DESTINATION ".") + INSTALL(DIRECTORY ${CMAKE_HOME_DIRECTORY}/win32/poppler-data DESTINATION ".") + ELSE (WIN32) +- ADD_CUSTOM_TARGET(Startup.pdf +- ALL +- COMMAND "man" "-t" "${CMAKE_SOURCE_DIR}/apvlv.1" "|" "ps2pdf" "-" "${CMAKE_SOURCE_DIR}/Startup.pdf" +- DEPENDS apvlv.1) + INSTALL(FILES apvlvrc.example DESTINATION ${SYSCONFDIR} + RENAME apvlvrc) + INSTALL(FILES apvlvrc.example Startup.pdf main_menubar.glade DESTINATION ${DOCDIR}) |