diff options
author | Ben <bosth@alumni.sfu.ca> | 2012-04-22 12:27:08 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-04-22 12:27:08 -0400 |
commit | 9ce329df2c98e61168895181b88141fc224324e9 (patch) | |
tree | cd21351d3f13785e9469331c6846a1c9c4b78658 /graphics/kphotoalbum/kphotoalbum.SlackBuild | |
parent | 287aa7159bcb7a67ecd22609c73bed7abe3988f0 (diff) | |
download | slackbuilds-9ce329df2c98e61168895181b88141fc224324e9.tar.gz |
graphics/kphotoalbum: Updated for version 4.2.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'graphics/kphotoalbum/kphotoalbum.SlackBuild')
-rw-r--r-- | graphics/kphotoalbum/kphotoalbum.SlackBuild | 18 |
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} - |