summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2020-12-09 21:21:14 +0100
committer Matteo Bernardini2021-03-06 10:51:32 +0100
commit437c5acb0e776a529e34467b1f85af0fbf2b3b15 (patch)
treef5950872cc99be57ca03bbd7bab1b03fb7f0eeab
parent3c59cb22425adf5d8a0d1a79baf00e6d9334c620 (diff)
downloadslackbuilds-screengrab.tar.gz
graphics/screengrab: Updated for version 2.1.0.screengrab
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--graphics/screengrab/screengrab.SlackBuild19
-rw-r--r--graphics/screengrab/screengrab.info10
2 files changed, 12 insertions, 17 deletions
diff --git a/graphics/screengrab/screengrab.SlackBuild b/graphics/screengrab/screengrab.SlackBuild
index 33aedaac88..cf6c465bd4 100644
--- a/graphics/screengrab/screengrab.SlackBuild
+++ b/graphics/screengrab/screengrab.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for screengrab
-# Copyright 2013-2015 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# Copyright 2013-2020 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,13 +22,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=screengrab
-VERSION=${VERSION:-1.2.1}
+VERSION=${VERSION:-2.1.0}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -39,9 +39,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-IS64BITS=0
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -49,7 +48,6 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
- IS64BITS=1
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -61,7 +59,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -73,11 +71,8 @@ find -L . \
mkdir -p build
cd build
cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \
- -DIS64BITS=$IS64BITS \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
@@ -86,7 +81,7 @@ cd ..
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
-# move the docs in slackware standard location
+# move the docs in Slackware standard location
mkdir $PKG/usr/doc
mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
rmdir $PKG/usr/share/doc
diff --git a/graphics/screengrab/screengrab.info b/graphics/screengrab/screengrab.info
index e65afe4eac..03f727edae 100644
--- a/graphics/screengrab/screengrab.info
+++ b/graphics/screengrab/screengrab.info
@@ -1,10 +1,10 @@
PRGNAM="screengrab"
-VERSION="1.2.1"
-HOMEPAGE="http://screengrab.doomer.org"
-DOWNLOAD="http://ponce.cc/slackware/sources/repo/screengrab-1.2.1.tar.gz"
-MD5SUM="b233b108558c509419bd754ba1c2c318"
+VERSION="2.1.0"
+HOMEPAGE="https://github.com/lxqt/screengrab"
+DOWNLOAD="https://github.com/lxqt/screengrab/releases/download/2.1.0/screengrab-2.1.0.tar.xz"
+MD5SUM="fdde74326b8155f1e926f329c00ff86e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="libqtxdg"
MAINTAINER="Matteo Bernardini"
EMAIL="ponce@slackbuilds.org"