ap/gmic: Upgraded to gmic-1.7.4.

slackware-14.2
Damien Goutte-Gattat 6 years ago
parent c9138c0db6
commit 4a8dad4169
  1. 37
      ap/gmic/gmic.SlackBuild
  2. 1
      ap/gmic/gmic_1.5.9.3.tar.gz.sha1
  3. 1
      ap/gmic/gmic_1.7.4.tar.gz.sha1

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2011,2014 Damien Goutte-Gattat
# Copyright (C) 2011,2014,2016 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -22,13 +22,13 @@
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest gmic sourcecode is available at: <http://gmic.sourceforge.net/>.
# Latest gmic sourcecode is available at: <http://gmic.eu/>.
# Source package infos
NAMESRC=${NAMESRC:-gmic}
VERSION=${VERSION:-1.5.9.3}
VERSION=${VERSION:-1.7.4}
ARCHIVE=${ARCHIVE:-${NAMESRC}_$VERSION.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/gmic/$ARCHIVE}
WGET=${WGET:-http://gmic.eu/files/source/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-gmic}
@ -78,24 +78,36 @@ fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Download the gmic-community code
# (Could one of the GMIC developers tell me the point of
# making a tarball release while leaving some essential
# files OUTSIDE OF THE FUCKING TARBALL?)
if [ ! -r gmic-community.tar.gz ]; then
git clone https://github.com/dtschump/gmic-community.git
cd gmic-community
git archive --format=tar --prefix=gmic-community/ \
69ff93739eb3fd8c1d0403ca1a9ee1d424365fb1 | \
gzip -c > ../gmic-community.tar.gz
cd ..
rm -rf gmic-community
fi
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
tar xf $CWD/gmic-community.tar.gz
sed -i 's,^GMIC_PATH = ../../gmic/src/,GMIC_PATH = ../../gmic-1.7.4/src/,' gmic-community/zart/zart.pro
cd $NAME/src
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
make -j $JOBS OPENMP_CFLAGS=
make -j $JOBS
make install LIB=lib$LIBDIRSUFFIX DESTDIR=$PKG
# Install
install -D -m 755 -s gmic $PKG/usr/bin/gmic
install -D -m 755 -s libgmic.so $PKG/usr/lib$LIBDIRSUFFIX/libgmic.so
install -D -m 755 -s gmic_gimp $PKG/usr/lib$LIBDIRSUFFIX/gimp/2.0/plug-ins/gmic_gimp
install -D -m 644 gmic.h $PKG/usr/include/gmic.h
install -D -m 755 ../resources/gmic_bashcompletion.sh $PKG/etc/bash_completion.d/gmic_bashcompletion.sh
install -D -m 644 ../man/gmic.1.gz $PKG/usr/man/1/gmic.1.gz
mkdir -p $PKG/usr/doc/$NAME
install -m 644 ../COPYING ../README $PKG/usr/doc/$NAME
mv $PKG/usr/share/man $PKG/usr/man
rmdir $PKG/usr/share
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -108,6 +120,7 @@ chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
rm -rf $TMP/gmic-community
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot

@ -1 +0,0 @@
c795fd628a4e416538dd5521581307326d1785df gmic_1.5.9.3.tar.gz

@ -0,0 +1 @@
28f7367efca0109ae058eefc9f0a0ab6d39e45f1 gmic_1.7.4.tar.gz
Loading…
Cancel
Save