aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/gmic/gmic.SlackBuild23
-rw-r--r--graphics/gmic/gmic.info12
2 files changed, 20 insertions, 15 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
diff --git a/graphics/gmic/gmic.info b/graphics/gmic/gmic.info
index 86a11a2f78be..d71eafdbed46 100644
--- a/graphics/gmic/gmic.info
+++ b/graphics/gmic/gmic.info
@@ -1,10 +1,10 @@
PRGNAM="gmic"
-VERSION="1.7.5"
-HOMEPAGE="http://gmic.eu"
-DOWNLOAD="http://gmic.eu/files/source/gmic_1.7.5.tar.gz \
- https://codeload.github.com/dtschump/gmic-community/zip/8419067dfc17963aad27303ecacc5a3b1f5c0644"
-MD5SUM="f49e428a211b28d755cd5e9945eaf61f \
- c08c8c77e2132d9f2f3c8b1502d80b4c"
+VERSION="2.0.0"
+HOMEPAGE="https://gmic.eu"
+DOWNLOAD="https://gmic.eu/files/source/gmic_2.0.0.tar.gz \
+ https://codeload.github.com/dtschump/gmic-community/zip/8419067dfc17963aad27303ecacc5a3b1f5c0644"
+MD5SUM="949282a7f4e2ba86deb2d893f6b108e3 \
+ c08c8c77e2132d9f2f3c8b1502d80b4c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="opencv"