Skip to content

Instantly share code, notes, and snippets.

@agaring

agaring/PKGBUILD Secret

Created August 25, 2023 21:30
Show Gist options
  • Save agaring/3b7b33b370feb26856527b09284ccf70 to your computer and use it in GitHub Desktop.
Save agaring/3b7b33b370feb26856527b09284ccf70 to your computer and use it in GitHub Desktop.
Updated PKGBUILD for Enpass 6.9.0 (1467)
pkgname='enpass-bin'
_pkgname='enpass'
pkgver=6.9.0.1467
pkgrel=1
pkgdesc='A multiplatform password manager'
arch=('x86_64')
url='http://enpass.io/'
license=('custom')
depends=('libxss' 'lsof' 'curl' 'libxkbcommon-x11' 'libxcb' 'xcb-util-wm'
'xcb-util-image' 'xcb-util-keysyms' 'xcb-util-renderutil')
optdepends=('libxdg-basedir: Open links in the default browser.'
'libqtxdg: Open links in the default browser (Qt implementation)')
provides=("${_pkgname}")
install='enpass-bin.install'
source=("https://apt.enpass.io/pool/main/e/enpass/${_pkgname}_${pkgver}_amd64.deb")
sha256sums=('fe405f7119d45822164da3ad009b99c5cd516685198c1d335b7803d84e5ba2ca')
# Disable strip as otherwise the browser extension will not work
options=('!strip')
package() {
# 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 {} \;
# 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 syntax=sh:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment