graphics/flameshot: Updated for version 0.8.5.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Fernando Lopez Jr 2021-01-01 23:46:10 +00:00 committed by Willy Sudiarto Raharjo
parent 1911380931
commit 5fb3b0a24c
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 17 additions and 14 deletions

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=flameshot
VERSION=${VERSION:-0.6.0}
VERSION=${VERSION:-0.8.5}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
@ -60,7 +60,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 .
@ -70,19 +70,22 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
qmake-qt5 -recursive flameshot.pro \
PREFIX=/usr \
CONFIG+=packaging \
QMAKE_CFLAGS="$SLKCFLAGS" \
QMAKE_CXXFLAGS="$SLKCFLAGS"
make
make install INSTALL_ROOT=$PKG
mkdir -p build
cd build
/opt/cmake-202x/bin/cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make VERBOSE=1
make install DESTDIR=$PKG
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CONTRIBUTING.md LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.md docs/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="flameshot"
VERSION="0.6.0"
VERSION="0.8.5"
HOMEPAGE="https://flameshot.js.org"
DOWNLOAD="https://github.com/lupoDharkael/flameshot/archive/v0.6.0/flameshot-0.6.0.tar.gz"
MD5SUM="e7bfcd53264c5b105556580cf0f2c231"
DOWNLOAD="https://github.com/lupoDharkael/flameshot/archive/v0.8.5/flameshot-0.8.5.tar.gz"
MD5SUM="be843bc62c0955a0aadc2a5dcc66e4b3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="qt5"
REQUIRES="qt5 cmake-202x"
MAINTAINER="Fernando Lopez Jr."
EMAIL="fernando.lopezjr@gmail.com"