mirror of
https://github.com/archlinux/aur.git
synced 2026-02-09 06:38:44 +01:00
Clean up the PKGBUILD a lot
And add a nvchecker file
This commit is contained in:
parent
d21ad295cf
commit
e8ba96b08f
3 changed files with 51 additions and 8 deletions
31
.SRCINFO
31
.SRCINFO
|
|
@ -5,10 +5,37 @@ pkgbase = proton-pass-bin
|
|||
url = https://proton.me/pass
|
||||
arch = x86_64
|
||||
groups = ProtonPass
|
||||
license = MIT
|
||||
license = GPL-3.0-or-later
|
||||
depends = alsa-lib
|
||||
depends = at-spi2-core
|
||||
depends = cairo
|
||||
depends = dbus
|
||||
depends = expat
|
||||
depends = gcc-libs
|
||||
depends = gdk-pixbuf2
|
||||
depends = glib2
|
||||
depends = glibc
|
||||
depends = gtk3
|
||||
depends = libcups
|
||||
depends = libdrm
|
||||
depends = libudev.so
|
||||
depends = libx11
|
||||
depends = libxcb
|
||||
depends = libxcomposite
|
||||
depends = libxdamage
|
||||
depends = libxext
|
||||
depends = libxfixes
|
||||
depends = libxrandr
|
||||
depends = libxkbcommon
|
||||
depends = mesa
|
||||
depends = nspr
|
||||
depends = nss
|
||||
depends = pango
|
||||
provides = proton-pass
|
||||
provides = protonpass
|
||||
conflicts = proton-pass
|
||||
conflicts = protonpass
|
||||
replaces = proton-pass
|
||||
replaces = protonpass
|
||||
source = https://proton.me/download/PassDesktop/linux/x64/proton-pass_1.23.0_amd64.deb
|
||||
sha256sums = 7b0acf937bf58e017ceee63eecff2841d58045cb8529d7e2335073ba530f0698
|
||||
|
||||
|
|
|
|||
3
.nvchecker.toml
Normal file
3
.nvchecker.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[proton-pass-bin]
|
||||
source = "cmd"
|
||||
cmd = "curl -L https://proton.me/download/PassDesktop/linux/x64/version.json | jq -r '.Releases[0].Version'"
|
||||
25
PKGBUILD
25
PKGBUILD
|
|
@ -1,4 +1,5 @@
|
|||
# Maintainer: Mysti
|
||||
# Maintainer: Echo J. <aidas957 at gmail dot com>
|
||||
# Contributor: Mysti
|
||||
|
||||
pkgname=proton-pass-bin
|
||||
pkgver=1.23.0
|
||||
|
|
@ -6,19 +7,31 @@ pkgrel=1
|
|||
pkgdesc="Open-source password manager for effortless protection. Securely store, share and auto-login your accounts with Proton Pass, using end-to-end encryption trusted by millions."
|
||||
arch=("x86_64")
|
||||
url="https://proton.me/pass"
|
||||
license=('MIT') # Bundled Electron
|
||||
license+=('GPL-3.0-or-later') # The Proton Pass code itself (https://github.com/ProtonMail/WebClients#license)
|
||||
groups=("ProtonPass")
|
||||
depends=('alsa-lib' 'at-spi2-core' 'cairo' 'dbus' 'expat' 'gcc-libs' 'gdk-pixbuf2' 'glib2' 'glibc' 'gtk3'
|
||||
'libcups' 'libdrm' 'libudev.so' 'libx11' 'libxcb' 'libxcomposite' 'libxdamage' 'libxext' 'libxfixes'
|
||||
'libxrandr' 'libxkbcommon' 'mesa' 'nspr' 'nss' 'pango') # Bundled Electron dependencies
|
||||
provides=('proton-pass' 'protonpass')
|
||||
conflicts=('proton-pass' 'protonpass')
|
||||
source=("https://proton.me/download/PassDesktop/linux/x64/proton-pass_${pkgver}_amd64.deb")
|
||||
sha256sums=('7b0acf937bf58e017ceee63eecff2841d58045cb8529d7e2335073ba530f0698')
|
||||
conflicts=('proton-pass' 'protonpass')
|
||||
replaces=('proton-pass' 'protonpass')
|
||||
|
||||
package() {
|
||||
tar -xvf data.tar.xz -C "$pkgdir/"
|
||||
|
||||
install -d "$pkgdir/opt/"
|
||||
mv "$pkgdir/usr/lib/proton-pass" "$pkgdir/opt/"
|
||||
install -dm755 "$pkgdir"/opt
|
||||
mv "$pkgdir"/usr/lib/proton-pass "$pkgdir"/opt
|
||||
rmdir "$pkgdir"/usr/lib
|
||||
|
||||
ln -sf "/opt/proton-pass/Proton Pass" "$pkgdir/usr/bin/proton-pass"
|
||||
ln -sf "/opt/proton-pass/Proton Pass" "$pkgdir"/usr/bin/proton-pass
|
||||
|
||||
# Remove world-writable bit from some files
|
||||
chmod -R o-w "$pkgdir"/opt/proton-pass/resources/assets
|
||||
|
||||
# Install bundled Electron license
|
||||
install -Dm644 "$pkgdir"/usr/share/doc/proton-pass/copyright "$pkgdir"/usr/share/licenses/"$pkgname"/copyright
|
||||
|
||||
rm -rf "$pkgdir"/usr/share/{doc,lintian}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue