mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
office/1password: Added (Online and offline password tool)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
bf8795e802
commit
dfff9185ed
8 changed files with 1857 additions and 0 deletions
107
office/1password/1password.SlackBuild
Normal file
107
office/1password/1password.SlackBuild
Normal file
|
@ -0,0 +1,107 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Slackware build script for 1password
|
||||
|
||||
# Copyright 2019-2022 Andrew Payne <phalange@komputermatrix.com>
|
||||
# Copyright 2018-2019 Donald Cooley South Haven, Indiana USA
|
||||
# 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=1password
|
||||
VERSION=${VERSION:-8.9.12}
|
||||
TAG=${TAG:-_SBo}
|
||||
BUILD=${BUILD:-1}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
# the name of the created package would be, and then exit. This information
|
||||
# could be useful to other scripts.
|
||||
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}
|
||||
|
||||
# Abort build if architecture is not 64-bit.
|
||||
if [ "$ARCH" != "x86_64" ]; then
|
||||
echo "$ARCH is not supported."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
mkdir -p $PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
rpm2cpio < $CWD/${PRGNAM}-latest.rpm | cpio -imdv
|
||||
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 {} \;
|
||||
|
||||
# 1password has its own symlinks from opt to bin
|
||||
cp -ap {opt,usr} $PKG/
|
||||
|
||||
# Slackware doesn't ship GNOME desktop
|
||||
rm -rf $PKG/usr/share/gnome-control-center
|
||||
|
||||
# Move icon into place
|
||||
mkdir -p $PKG/usr/share/pixmaps
|
||||
cp -a $CWD/other/product_logo_32.xpm \
|
||||
$PKG/usr/share/pixmaps/1password.xpm
|
||||
|
||||
# Use proper icon size for 256x256 icon
|
||||
cp -a $CWD/other/1password.png \
|
||||
$PKG/usr/share/icons/hicolor/256x256/apps/1password.png
|
||||
|
||||
cp -a $CWD/other/custom_allowed_browsers\
|
||||
$PKG/opt/1Password/resources/
|
||||
|
||||
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 $PKG/opt/1Password/LICENSE.electron.txt \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION/LICENSE
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
10
office/1password/1password.info
Normal file
10
office/1password/1password.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="1password"
|
||||
VERSION="8.9.12"
|
||||
HOMEPAGE="https://1password.com"
|
||||
DOWNLOAD="UNSUPPORTED"
|
||||
MD5SUM=""
|
||||
DOWNLOAD_x86_64="https://downloads.1password.com/linux/rpm/beta/x86_64/1password-latest.rpm"
|
||||
MD5SUM_x86_64="c7cb43ff2b8b46b899b00942cd122126"
|
||||
REQUIRES=""
|
||||
MAINTAINER="Akileo"
|
||||
EMAIL="none@none.com"
|
11
office/1password/README
Normal file
11
office/1password/README
Normal file
|
@ -0,0 +1,11 @@
|
|||
1password is used to keep important information safe
|
||||
|
||||
Note:
|
||||
This SlackBuild does not build 1password from source,
|
||||
it repackages the binary.
|
||||
|
||||
It uses Mozilla Firefox as the default browser. Modify
|
||||
other/custom_allowed_browsers if you want to use a
|
||||
different browser based on the following:
|
||||
https://1password.community/discussion/120954/how-the-
|
||||
browser-integration-works
|
13
office/1password/doinst.sh
Normal file
13
office/1password/doinst.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -x /usr/bin/update-mime-database ]; then
|
||||
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
BIN
office/1password/other/1password.png
Normal file
BIN
office/1password/other/1password.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
15
office/1password/other/custom_allowed_browsers
Normal file
15
office/1password/other/custom_allowed_browsers
Normal file
|
@ -0,0 +1,15 @@
|
|||
# This file, when placed into /etc/1password/custom_allowed_browsers will allow for
|
||||
# custom browsers to be defined that can work with 1Password for Linux's browser extension
|
||||
# integration.
|
||||
#
|
||||
# 1Password for Linux custom browser allowlist
|
||||
#
|
||||
# To add a browser here, add the filename of the browser. Multiple can be seperated by a `\n`.
|
||||
# Any lines starting with `#` will be ignored.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# vivaldi-bin
|
||||
# opera
|
||||
#
|
||||
firefox
|
1682
office/1password/other/product_logo_32.xpm
Normal file
1682
office/1password/other/product_logo_32.xpm
Normal file
File diff suppressed because it is too large
Load diff
19
office/1password/slack-desc
Normal file
19
office/1password/slack-desc
Normal file
|
@ -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------------------------------------------------------|
|
||||
1password: 1password (Online and offline password tool)
|
||||
1password:
|
||||
1password: Millions of customers and more than 100,000 businesses trust
|
||||
1password: 1Password to keep their most important information safe.
|
||||
1password:
|
||||
1password: At 1Password we believe everyone deserves to be safe online. That's
|
||||
1password: why we're building modern, accessible apps with privacy and security
|
||||
1password: at their core.
|
||||
1password:
|
||||
1password: Homepage: https://1password.com
|
||||
1password:
|
Loading…
Reference in a new issue