summaryrefslogtreecommitdiff
path: root/graphics/photivo/photivo.SlackBuild
diff options
context:
space:
mode:
authorGiorgio Peron <giorgio.peron@gmail.com>2014-11-24 08:40:10 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-11-24 08:40:10 +0700
commit4efebc3baebd2240687f96634074103581acef11 (patch)
treeabf26377788bf0b89815fe8809cbe4e259446482 /graphics/photivo/photivo.SlackBuild
parentd95fbafd78ed20a72e12ad7d29f90567fe5a4091 (diff)
downloadslackbuilds-4efebc3baebd2240687f96634074103581acef11.tar.gz
graphics/photivo: Updated for version 20140525.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/photivo/photivo.SlackBuild')
-rw-r--r--graphics/photivo/photivo.SlackBuild26
1 files changed, 13 insertions, 13 deletions
diff --git a/graphics/photivo/photivo.SlackBuild b/graphics/photivo/photivo.SlackBuild
index 2f1eed2e3c..dfd2a719be 100644
--- a/graphics/photivo/photivo.SlackBuild
+++ b/graphics/photivo/photivo.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Photivo
-# Copyright 2013 Giorgio Peron <giorgio.peron@gmail.com>, Campodarsego, PD, Italy
+# Copyright 2014 Giorgio Peron <giorgio.peron@gmail.com>, Campodarsego, PD, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=photivo
-VERSION=${VERSION:-20131103}
+VERSION=${VERSION:-20140525}
+SRC_VERSION=2debcb532cbd
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,18 +61,19 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
-cd $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.gz || tar xvf $CWD/2debcb532cbdcf20fdac4aa89facfcebba868039.tar.gz
+cd $PRGNAM-$SRC_VERSION
find . -exec touch {} \;
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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -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 {} \;
-#qmake CONFIG+=WithClear CONFIG+=WithGimp CONFIG+=WithAdobeProfiles CONFIG+=WithCurves photivo.pro PREFIX=/usr/share
-qmake photivo.pro PREFIX=/usr
+export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/include/lensfun
+patch -p1 < $CWD/photivo-lensfun-0.3.0.diff
+qmake CONFIG+=WithGimp photivo.pro PREFIX=/usr
make
make install INSTALL_ROOT=$PKG
@@ -81,9 +83,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- README COPYING* \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README COPYING* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install