aboutsummaryrefslogtreecommitdiff
path: root/graphics/gmic/gmic.SlackBuild
diff options
context:
space:
mode:
authorGiorgio Peron <giorgio.peron@gmail.com>2017-06-02 23:40:38 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-06-02 23:40:38 +0100
commit5f33e296532ac2b62c8163ca304983874d684648 (patch)
treeb333f9ecaf297f45a56780ea5e10bb3dcc049980 /graphics/gmic/gmic.SlackBuild
parentb5126c2d4cd4f053c2c39f0edb6ea1309651defb (diff)
graphics/gmic: Updated for version 2.0.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'graphics/gmic/gmic.SlackBuild')
-rw-r--r--graphics/gmic/gmic.SlackBuild23
1 files changed, 14 insertions, 9 deletions
diff --git a/graphics/gmic/gmic.SlackBuild b/graphics/gmic/gmic.SlackBuild
index 24555744b982..1659dd214393 100644
--- a/graphics/gmic/gmic.SlackBuild
+++ b/graphics/gmic/gmic.SlackBuild
@@ -21,7 +21,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gmic
-VERSION=${VERSION:-1.7.5}
+VERSION=${VERSION:-2.0.0}
SRCVER=8419067dfc17963aad27303ecacc5a3b1f5c0644
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,10 +60,10 @@ mkdir -p $TMP $PKG
cd $TMP
rm -rf $PRGNAM
rm -rf $PRGNAM-community
-tar xvf $CWD/$PRGNAM\_$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM\_$VERSION.tar.gz --warning=no-unknown-keyword
mv $PRGNAM-$VERSION $PRGNAM
unzip $CWD/$PRGNAM-community-$SRCVER.zip || unzip $CWD/$SRCVER
-mv $PRGNAM-community-8419067dfc17963aad27303ecacc5a3b1f5c0644 $PRGNAM-community
+mv $PRGNAM-community-$SRCVER $PRGNAM-community
cd $PRGNAM
chown -R root:root .
find -L . \
@@ -73,18 +73,23 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cd src
-sed -i "s/LIB = lib/LIB = lib$LIBDIRSUFFIX/" Makefile
-sed -i "s:/share/man/:/man/:g" Makefile
-make
-make install DESTDIR=$PKG
+ sed -i "s/LIB = lib/LIB = lib$LIBDIRSUFFIX/" Makefile
+ sed -i "s:/share/man/:/man/:g" Makefile
+ # freshen gmic_stdlib.h to stop the Makefile downloading it
+ touch gmic_stdlib.h
+ make
+ make install DESTDIR=$PKG
cd -
+
rmdir $PKG/usr/share || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING* README* $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG -print0 | xargs -0 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 COPYING* README* $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