aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-02-10 14:01:50 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-02-14 06:27:51 +0700
commit2ceaac38039137dfd205301915643b05749ffa9e (patch)
tree57cd7c54fc400fd50756d4341de4469fb1fbc35e /network
parent02c6116420da04bdcf872cc5ce9347be753afbd0 (diff)
network/qutebrowser: New requirements. Simplify SlackBuild.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/qutebrowser/qutebrowser.SlackBuild30
-rw-r--r--network/qutebrowser/qutebrowser.info2
2 files changed, 6 insertions, 26 deletions
diff --git a/network/qutebrowser/qutebrowser.SlackBuild b/network/qutebrowser/qutebrowser.SlackBuild
index e42eec63904a6..206fcd5b5bbcf 100644
--- a/network/qutebrowser/qutebrowser.SlackBuild
+++ b/network/qutebrowser/qutebrowser.SlackBuild
@@ -23,7 +23,7 @@
PRGNAM=qutebrowser
VERSION=${VERSION:-2.0.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -39,20 +39,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -68,20 +54,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make -f misc/Makefile install DESTDIR=$PKG PREFIX=/usr
+make -f misc/Makefile install DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man
find $PKG -name \*\.opt-1.pyc -exec rm -f {} \;
-mkdir -p $PKG/usr/share/pixmaps
-cp icons/qutebrowser.xpm $PKG/usr/share/pixmaps/
-
-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
-
-mv $PKG/usr/share/man $PKG/usr
+install -D -m 0644 icons/qutebrowser.xpm \
+ $PKG/usr/share/pixmaps/qutebrowser.xpm
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+gzip -9 $PKG/usr/man/man1/qutebrowser.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.asciidoc $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/network/qutebrowser/qutebrowser.info b/network/qutebrowser/qutebrowser.info
index a4bd406eaf5f4..ed94b12ef44b7 100644
--- a/network/qutebrowser/qutebrowser.info
+++ b/network/qutebrowser/qutebrowser.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/qutebrowser/qutebrowser/releases/download/v2.0.2/qu
MD5SUM="506184a80f36fc287bf6e52e65eceac8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3-attrs python3-PyYAML Pygments Jinja2 pyPEG2 python3-PyQtWebEngine"
+REQUIRES="python3-attrs python3-PyYAML Pygments Jinja2 pyPEG2 python3-PyQtWebEngine python-toml importlib-resources python-zipp"
MAINTAINER="Dave Woodfall"
EMAIL="dave@slackbuilds.org"