enpass-bin/PKGBUILD

76 lines
1.8 KiB
Bash

# Maintainer: Christian Schendel <doppelhelix@gmail.com>
pkgname=enpass-bin
pkgver=6.11.12.1953
pkgrel=1
pkgdesc='A multiplatform password manager'
arch=(x86_64)
url='http://enpass.io/'
license=(
'LicenseRef-custom'
)
optdepends=(
'libxdg-basedir: Open links in the default browser.'
'libqtxdg: Open links in the default browser (Qt implementation)'
)
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
install='enpass-bin.install'
source=("https://apt.enpass.io/pool/main/e/enpass/${pkgname%-bin}_${pkgver}_amd64.deb")
b2sums=('ece8aae433b3797614d82ae07d5b7322e48c43cf0d5e6db7aff1e48f67ac220c2fb066b6a61f311f613a56480c9bf4323c13effa3e112f11eab1e10511d944fd')
# Disable strip as otherwise the browser extension will not work
options=('!strip')
package() {
depends+=(
curl
dbus
fontconfig
freetype2
glib2
glibc
gtk3
hicolor-icon-theme
libcups
libglvnd
libice
libpulse
libsm
libx11
libxcb
libxkbcommon
libxkbcommon-x11
libxss
lsof
pango
util-linux-libs
xcb-util-image
xcb-util-keysyms
xcb-util-renderutil
xcb-util-wm
xz
zlib
)
# Extract data
tar xfz "${srcdir}/data.tar.gz" -C "${pkgdir}"
# Remove unnecessary files which are included in the .deb
# find "${pkgdir}" -name '*~' -delete
# Update permissions to match the default system ones
chmod -R go-w "${pkgdir}/opt/"
chmod 755 "${pkgdir}/opt/"
find "${pkgdir}/usr/" -type d -exec chmod 755 {} \;
find "${pkgdir}/usr/" -type f -exec chmod 644 {} \;
# Symlink "runenpass.sh" to "/usr/bin" so it is accessible via cli
mkdir -p "${pkgdir}/usr/bin"
ln -s '/opt/enpass/Enpass' "${pkgdir}/usr/bin/enpass"
}
# vim: set ft=sh ts=4 sw=4 et: