Browse Source

ap/gmic: Upgraded to gmic-1.7.9.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent
commit
235e2569ad
  1. 17
      ap/gmic/gmic.SlackBuild
  2. 1
      ap/gmic/gmic_1.7.4.tar.gz.sha1
  3. 1
      ap/gmic/gmic_1.7.9.tar.gz.sha256

17
ap/gmic/gmic.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2011,2014,2016 Damien Goutte-Gattat
# Copyright (C) 2011,2014,2016,2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,10 +23,12 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest gmic sourcecode is available at: <http://gmic.eu/>.
#
# Depends: l/opencv
# Source package infos
NAMESRC=${NAMESRC:-gmic}
VERSION=${VERSION:-1.7.4}
VERSION=${VERSION:-1.7.9}
ARCHIVE=${ARCHIVE:-${NAMESRC}_$VERSION.tar.gz}
WGET=${WGET:-http://gmic.eu/files/source/$ARCHIVE}
@ -75,7 +77,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Download the gmic-community code
@ -86,7 +88,7 @@ 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 | \
42d16ee2aa4f0aff6e81eb5f12f5193151ba7640 | \
gzip -c > ../gmic-community.tar.gz
cd ..
rm -rf gmic-community
@ -97,7 +99,7 @@ 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
sed -i 's,^ GMIC_PATH = ../../gmic/src/, GMIC_PATH = ../../gmic-1.7.9/src/,' gmic-community/zart/zart.pro
cd $NAME/src
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
@ -112,6 +114,11 @@ rmdir $PKG/usr/share
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
opencv
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

1
ap/gmic/gmic_1.7.4.tar.gz.sha1

@ -1 +0,0 @@
28f7367efca0109ae058eefc9f0a0ab6d39e45f1 gmic_1.7.4.tar.gz

1
ap/gmic/gmic_1.7.9.tar.gz.sha256

@ -0,0 +1 @@
152f100eb139a5f6e5b3d1e43aaed34f2b3786f72f52724ebde5e5ccea2c7133 gmic_1.7.9.tar.gz
Loading…
Cancel
Save