Files
chromebrew/packages/keepassxc.rb
chromebrew-actions[bot] 636435d03f keepassxc -> 2.7.12 in updater-keepassxc-2.7.12 — keepassxc: 2.7.11 → 2.7.12 (#14959)
* keepassxc -> 2.7.12 in updater-keepassxc-2.7.12

* updater-keepassxc-2.7.12: Package File Update Run on linux/amd64 container.

---------

Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: Satadru Pramanik, DO, MPH, MEng <satadru@gmail.com>
2026-03-11 01:33:28 +00:00

36 lines
1.1 KiB
Ruby

require 'package'
class Keepassxc < Package
description 'KeePass Cross-Platform Community Edition, the free, open source, light-weight and easy-to-use password manager.'
homepage 'https://keepassxc.org/'
version '2.7.12'
license 'GPL-2 or GPL-3'
compatibility 'x86_64'
min_glibc '2.28'
source_url "https://github.com/keepassxreboot/keepassxc/releases/download/#{version}/KeePassXC-#{version}-x86_64.AppImage"
source_sha256 '564fe8b751b9ef7aa057e4d3d0b2878db24eaa0f6b1c855c82e699ab0913ae49'
no_compile_needed
depends_on 'sommelier' => :logical
def self.build
File.write 'keepassxc.sh', <<~EOF
#!/bin/bash
cd #{CREW_PREFIX}/share/keepassxc
./AppRun "$@"
EOF
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/keepassxc"
FileUtils.install 'keepassxc.sh', "#{CREW_DEST_PREFIX}/bin/keepassxc", mode: 0o755
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/keepassxc"
end
def self.postinstall
ExitMessage.add "\nType 'keepassxc' to get started.\n"
end
end