summaryrefslogtreecommitdiff
path: root/graphics/kphotoalbum/kphotoalbum.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/kphotoalbum/kphotoalbum.SlackBuild')
-rw-r--r--graphics/kphotoalbum/kphotoalbum.SlackBuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/graphics/kphotoalbum/kphotoalbum.SlackBuild b/graphics/kphotoalbum/kphotoalbum.SlackBuild
index d573924941..60bb1fc689 100644
--- a/graphics/kphotoalbum/kphotoalbum.SlackBuild
+++ b/graphics/kphotoalbum/kphotoalbum.SlackBuild
@@ -4,7 +4,7 @@
# By default the demo pictures and movie are packaged.
PRGNAM=kphotoalbum
-VERSION=${VERSION:-4.1.1}
+VERSION=${VERSION:-4.2}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
@@ -25,7 +25,11 @@ OUTPUT=${OUTPUT:-/tmp}
# Default is to package the demo pictures and movie,
# set DEMO to no to omit them.
-DEMO=yes
+DEMO=${DEMO:-yes}
+
+# Default is to apply the docbook patch required for
+# KDE versions <4.8
+DOCBOOK_PATCH=${DOCBOOK_PATCH:-yes}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -56,10 +60,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Update docbook files to XML V4.2-Based Variant.
-patch -p1 < $CWD/kphotoalbum-4.1.1-docbook_fix.patch
-# Upstream patch to fix compilation with exiv2-0.21.
-patch -p1 < $CWD/kphotoalbum-4.1.1-exiv2.patch
+if [ "$DOCBOOK_PATCH" = "yes" ]; then
+ patch -p1 < $CWD/kphotoalbum-4.2-docbook_xml.patch
+fi
mkdir build && cd build
cmake \
@@ -73,7 +76,7 @@ mkdir build && cd build
make install DESTDIR=$PKG
cd -
-if [ "$DEMO"="no" ]; then
+if [ "$DEMO" = "no" ]; then
rm -r /$PKG/usr/share/apps/$PRGNAM/demo
fi
@@ -91,4 +94,3 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-