summaryrefslogtreecommitdiff
path: root/graphics/ufraw/ufraw.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2011-07-08 19:33:42 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 19:50:58 -0300
commit873134a4bae1c17eecbd8c8719d275901c065bf9 (patch)
tree571317647986063157d71021f75a9328391d5f1a /graphics/ufraw/ufraw.SlackBuild
parent3ae22242d4355da670443dca9c63e8cd7ee071a2 (diff)
downloadslackbuilds-873134a4bae1c17eecbd8c8719d275901c065bf9.tar.gz
graphics/ufraw: Updated for version 0.18.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'graphics/ufraw/ufraw.SlackBuild')
-rw-r--r--graphics/ufraw/ufraw.SlackBuild20
1 files changed, 8 insertions, 12 deletions
diff --git a/graphics/ufraw/ufraw.SlackBuild b/graphics/ufraw/ufraw.SlackBuild
index d9fe2df2ac..50546916ee 100644
--- a/graphics/ufraw/ufraw.SlackBuild
+++ b/graphics/ufraw/ufraw.SlackBuild
@@ -3,7 +3,7 @@
# Slackware Package Build Script for UFRaw (Unidentified Flying Raw)
# Home Page http://ufraw.sourceforge.net/
-# Copyright (c) 2007-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
+# Copyright (c) 2007-2011, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
# Copyright (c) 2007, Robby Workman <rworkman@slackbuilds.org>
# All rights reserved.
#
@@ -25,17 +25,15 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=ufraw
-VERSION=0.17
+PRGNAM="ufraw"
+VERSION=${VERSION:-0.18}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -65,7 +63,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e # Exit on most errors
+set -e
rm -rf $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -91,17 +89,14 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux \
$gtk_option
-make
+make V=1
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Compress man pages
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/share/{applications,pixmaps}
install -m 0644 ufraw.desktop $PKG/usr/share/applications
@@ -112,6 +107,7 @@ cp -a COPYING MANIFEST README TODO $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}