network/vimfx: Added (Vim keyboard shortcuts for Firefox).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
30461fcc39
commit
6c42f087ab
|
@ -0,0 +1,19 @@
|
|||
VimFx is a Firefox extension which adds short, Vim-style keyboard
|
||||
shortcuts for browsing and navigation, for a near mouseless
|
||||
experience.
|
||||
|
||||
One of key tenets of VimFx is that the standard Firefox features are
|
||||
always preferable to re-implementing similar functionality.
|
||||
|
||||
VimFx is a legacy extension as opposite to WebExtensions. It works on
|
||||
modern versions of Firefox thanks to a shim called LegacyFox, which is
|
||||
also included in this script. Unlike WebExtensions this legacy one
|
||||
works on incompletely loaded, blank, and system pages.
|
||||
|
||||
This script will install VimFx for all users on the system. When
|
||||
starting Firefox, users will see a yellow warning triangle above the
|
||||
hamburger menu (a button with three horizontal lines) and will be
|
||||
prompted to activate the extension.
|
||||
|
||||
README.SBo contains details on building the package for a Firefox
|
||||
different from the stock Slackware mozilla-firefox.
|
|
@ -0,0 +1,19 @@
|
|||
To build the package for a Firefox different from the stock Slackware
|
||||
mozilla-firefox, pass to the script the variable FFDIR that contains
|
||||
the Firefox installation directory as in
|
||||
FFDIR=/usr/lib64/firefox-latest
|
||||
|
||||
In this case it may also be advisable to update LegacyFox, check the
|
||||
release list on the VimFx homepage. The LegacyFox version can be
|
||||
passed to the script in the variable LFVERSION.
|
||||
|
||||
For non ESR Firefox the VimFx xpi-file
|
||||
$FFDIR/browser/extensions/VimFx-unlisted@akhodakivskiy.github.com.xpi
|
||||
must be copied or symlinked to the directory
|
||||
~/.mozilla/firefox/<profile name>/extensions/
|
||||
for every Firefox user (and for every profile).
|
||||
|
||||
Also, for non ESR Firefox the about:addons page shows a red banner
|
||||
with the text "VimFx could not be verified for use in Firefox and has
|
||||
been disabled". It is wrong and can be ignored; VimFx will work
|
||||
regardless.
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
vimfx: vimfx (Vim keybindings for Firefox)
|
||||
vimfx:
|
||||
vimfx: VimFx is a Firefox extension which adds short, Vim-style keyboard
|
||||
vimfx: shortcuts for browsing and navigation, for a near mouseless
|
||||
vimfx: experience.
|
||||
vimfx:
|
||||
vimfx: One of key tenets of VimFx is that the standard Firefox features are
|
||||
vimfx: always preferable to re-implementing similar functionality.
|
||||
vimfx:
|
||||
vimfx: Homepage: https://github.com/akhodakivskiy/VimFx
|
||||
vimfx:
|
|
@ -0,0 +1,103 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Slackware build script for vimfx
|
||||
|
||||
# Copyright 2024, Alexander Verbovetsky, Moscow, Russia
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=vimfx
|
||||
VERSION=${VERSION:-0.27.1}
|
||||
LFVERSION=${LFVERSION:-3.3}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBDIRSUFFIX="64"
|
||||
elif [ "$ARCH" = "aarch64" ]; then
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
FFDIR=${FFDIR:-/usr/lib${LIBDIRSUFFIX}/firefox}
|
||||
|
||||
set -e
|
||||
|
||||
case $FFDIR in
|
||||
/*) if ! /usr/bin/pathchk -p -- "$FFDIR"; then
|
||||
echo "invalid FFDIR"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
*) echo "FFDIR isn't an absolute path"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG$FFDIR/browser/extensions $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/*v$LFVERSION*.tar.gz
|
||||
mv *v$LFVERSION* $PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
make install DESTDIR=$PKG$FFDIR
|
||||
|
||||
install -m 0644 -o root -g root $CWD/VimFx.xpi \
|
||||
$PKG$FFDIR/browser/extensions/VimFx-unlisted@akhodakivskiy.github.com.xpi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat README > $PKG/usr/doc/$PRGNAM-$VERSION/README-LegacyFox
|
||||
cd $CWD
|
||||
for f in CHANGELOG.md PEOPLE.md README.md $PRGNAM.SlackBuild; do \
|
||||
cat $f > $PKG/usr/doc/$PRGNAM-$VERSION/$f; done
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
|
@ -0,0 +1,18 @@
|
|||
PRGNAM="vimfx"
|
||||
VERSION="0.27.1"
|
||||
HOMEPAGE="https://github.com/akhodakivskiy/VimFx"
|
||||
DOWNLOAD="https://github.com/akhodakivskiy/VimFx/releases/download/v0.27.1/VimFx.xpi \
|
||||
https://raw.githubusercontent.com/akhodakivskiy/VimFx/v0.27.1/README.md \
|
||||
https://raw.githubusercontent.com/akhodakivskiy/VimFx/v0.27.1/CHANGELOG.md \
|
||||
https://raw.githubusercontent.com/akhodakivskiy/VimFx/v0.27.1/PEOPLE.md \
|
||||
https://git.gir.st/LegacyFox.git/snapshot/v3.3.tar.gz"
|
||||
MD5SUM="66567d440fb1f37cd61ae594446548e3 \
|
||||
237b1aac5c13b65297d7a19cd29ddb6b \
|
||||
d30337da8ffade3fad582f3bb927ab8f \
|
||||
34b9e545905fa6d00e2421a6c1a81a5a \
|
||||
3e2e2fc0c42d6f008706e74754d01731"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Alexander Verbovetsky"
|
||||
EMAIL="alik@ejik.org"
|
Loading…
Reference in New Issue