graphics/gtkam: Updated for version 0.1.16.1

This commit is contained in:
Michael Wagner 2010-05-13 00:27:59 +02:00 committed by Robby Workman
parent ca2dbecb15
commit a8f8cec226
6 changed files with 52 additions and 51 deletions

View File

@ -4,4 +4,4 @@ libgphoto2 is a portable library which gives access to literally
hundreds of digital cameras. This package includes a graphical GTK2 hundreds of digital cameras. This package includes a graphical GTK2
frontend and a GIMP plugin. frontend and a GIMP plugin.
Gtkam requires libexif-gtk, which is available at SlackBuilds.org. This requires libexif-gtk.

View File

@ -1,5 +1,10 @@
if [ -x /usr/bin/update-desktop-database ]; then
if [ -x usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
usr/bin/update-desktop-database -q usr/share/applications fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi fi

View File

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh
# Slackware Build Script for gtkam # Slackware Build Script for gtkam
# (C) 2007 Michael Wagner <lapinours@web.de>
# (C) 2009 Michael Wagner <slackware.wagnerm@arcor.de>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -20,84 +22,76 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by the SlackBuilds Project
set -e
PRGNAM=gtkam PRGNAM=gtkam
VERSION=0.1.14 VERSION=0.1.16.1
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README TODO"
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1 cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION || exit 1 cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-s . find . \
\( -perm 777 -o -perm 775 -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 {} \;
# Add --without-gimp if you don't want to compile the GIMP plugin # Add --without-gimp if you don't want to compile the GIMP plugin
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--sysconfdir=/etc \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var/lib\
--mandir=/usr/man \ --mandir=/usr/man \
--disable-static \ --disable-static \
--disable-scrollkeeper \ --disable-scrollkeeper \
--without-gnome \ --without-gnome \
--without-bonobo \ --without-bonobo \
--program-prefix="" \ --build=$ARCH-slackware-linux
--program-suffix="" \
|| exit 1
make || exit 1
make install DESTDIR=$PKG || exit 1
( cd $PKG sed -i "s,$(egrep ^gtkamdocdir Makefile),gtkamdocdir = /usr/doc/$PRGNAM-$VERSION," Makefile
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
if [ -d $PKG/usr/man ]; then make
( cd $PKG/usr/man make install-strip DESTDIR=$PKG
find . -name "*.?" -type f 2> /dev/null | xargs gzip -9 2> /dev/null
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/* chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
# Get rid of unnecessary stuff # Get rid of unnecessary stuff
for i in gnome omf doc; do for i in gnome omf; do
rm -rf $PKG/usr/share/$i &> /dev/null rm -rf $PKG/usr/share/$i &> /dev/null
done done
# Replace upstreams png icon as it is corrupt gzip -9 $PKG/usr/man/man?/$PRGNAM.?
cat $CWD/gtkam.png > $PKG/usr/share/pixmaps/gtkam.png
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc for i in slack-desc doinst.sh; do
cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/$i > $PKG/install/$i
done
cd $PKG cd $PKG
/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -1,8 +1,10 @@
PRGNAM="gtkam" PRGNAM="gtkam"
VERSION="0.1.14" VERSION="0.1.16.1"
HOMEPAGE="http://www.gphoto.org" HOMEPAGE="http://www.gphoto.org"
DOWNLOAD="http://downloads.sourceforge.net/gphoto/gtkam-0.1.14.tar.bz2" DOWNLOAD="http://downloads.sourceforge.net/gphoto/gtkam-0.1.16.1.tar.bz2"
MD5SUM="2b6e6fea0bc55d9f78952f0061d7ef7e" MD5SUM="0b76a503aa87d892280044bd546a1fad"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Michael Wagner" MAINTAINER="Michael Wagner"
EMAIL="lapinours@web.de" EMAIL="slackware.wagnerm@arcor.de"
APPROVED="BP{k},rworkman" APPROVED="rworkman"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -13,7 +13,7 @@ gtkam: hundreds of digital cameras. This package includes a graphical GTK2
gtkam: frontend and a GIMP plugin. gtkam: frontend and a GIMP plugin.
gtkam: gtkam:
gtkam: Homepage: http://www.gphoto.org gtkam: Homepage: http://www.gphoto.org
gtkam: gtkam:
gtkam: gtkam:
gtkam: gtkam:
gtkam: gtkam: