mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
office/qpdfview: Updated for version 0.5.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
371d7bcd26
commit
1aa18458b9
2 changed files with 17 additions and 24 deletions
|
@ -7,13 +7,14 @@
|
|||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
# 20230630 bkw: update for v0.5.
|
||||
# 20220425 bkw: take over maintenance, relicense as WTFPL.
|
||||
# 20220222 bkw: Modified by SlackBuilds.org: fix build on 15.0.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=qpdfview
|
||||
VERSION=${VERSION:-0.4.18}
|
||||
VERSION=${VERSION:-0.5}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -59,38 +60,30 @@ rm -rf "$PRGNAM-$VERSION"
|
|||
tar xfv $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
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 \
|
||||
\( -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|/usr/lib/qpdfview|/usr/lib${LIBDIRSUFFIX}/qpdfview|" qpdfview.pri
|
||||
|
||||
sed -i '1i#include <QPainterPath>' sources/model.h
|
||||
|
||||
# From Arch pkgbuild. Fix build with texlive in Slackware current.
|
||||
sed -e 's|2.0.0|1.21.0|' -i application.pro
|
||||
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
|
||||
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
|
||||
|
||||
# Add localizations
|
||||
lrelease-qt5 qpdfview.pro
|
||||
|
||||
#Configure qpdfview. Installation paths are correctly set in qpdfview.pri
|
||||
qmake-qt5 QMAKE_CFLAGS="$SLKCFLAGS" QMAKE_CXXFLAGS="$SLKCFLAGS" qpdfview.pro
|
||||
qmake-qt5 \
|
||||
QMAKE_CFLAGS="$SLKCFLAGS" \
|
||||
QMAKE_CXXFLAGS="$SLKCFLAGS" \
|
||||
PLUGIN_INSTALL_PATH=/usr/lib$LIBDIRSUFFIX/$PRGNAM \
|
||||
MANUAL_INSTALL_PATH=/usr/man/man1 \
|
||||
qpdfview.pro
|
||||
|
||||
make
|
||||
make INSTALL_ROOT=$PKG install
|
||||
|
||||
strip $PKG/usr/bin/* $PKG/usr/lib*/$PRGNAM/*.so
|
||||
|
||||
mv -v $PKG/usr/share/man $PKG/usr/man
|
||||
gzip -9 $PKG/usr/man/man*/*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
CHANGES CONTRIBUTORS COPYING README TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mkdir -p $PKGDOC
|
||||
cp -a CHANGES CONTRIBUTORS COPYING README TODO $PKGDOC
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="qpdfview"
|
||||
VERSION="0.4.18"
|
||||
VERSION="0.5"
|
||||
HOMEPAGE="https://launchpad.net/qpdfview"
|
||||
DOWNLOAD="https://launchpad.net/qpdfview/trunk/0.4.18/+download/qpdfview-0.4.18.tar.gz"
|
||||
MD5SUM="4d63ee0095e939602f9bf4759ae57953"
|
||||
DOWNLOAD="https://launchpad.net/qpdfview/trunk/0.5.0/+download/qpdfview-0.5.tar.gz"
|
||||
MD5SUM="820c0f48ec2175355247bb624757867b"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue