From 37383606472712ebd44b786a0ce9c8f9db7f1c8a Mon Sep 17 00:00:00 2001 From: Brad Hermanson Date: Sun, 13 Nov 2011 00:44:39 -0600 Subject: libraries/libgexiv2: Added (GObject wrapper around Exiv2 library) Signed-off-by: Robby Workman --- libraries/libgexiv2/libgexiv2.SlackBuild | 71 ++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 libraries/libgexiv2/libgexiv2.SlackBuild (limited to 'libraries/libgexiv2/libgexiv2.SlackBuild') diff --git a/libraries/libgexiv2/libgexiv2.SlackBuild b/libraries/libgexiv2/libgexiv2.SlackBuild new file mode 100644 index 0000000000..5c13ee76d4 --- /dev/null +++ b/libraries/libgexiv2/libgexiv2.SlackBuild @@ -0,0 +1,71 @@ +#!/bin/sh + +# Brad Hermanson + +PRGNAM=libgexiv2 +VERSION=0.3.1 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION + +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +# This doesn't really do much... +./configure --prefix=/usr + +make \ + CFLAGS="$SLKCFLAGS -g -pipe -fPIC -nostdlib" \ + PREFIX=/usr \ + LIB=lib${LIBDIRSUFFIX} +make install \ + PREFIX=/usr \ + LIB=lib${LIBDIRSUFFIX} \ + 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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING INSTALLING MAINTAINERS NEWS README THANKS \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3