add Arch packaging

This commit is contained in:
2025-08-31 05:24:36 -04:00
parent b2c27d26e8
commit 1a7f502fce
3 changed files with 34 additions and 0 deletions

6
.gitignore vendored
View File

@@ -5,3 +5,9 @@ src-tauri/target/
# .env is system-specific
.env
.vscode
pacman/pkg
pacman/src
pacman/*.deb
pacman/*.tar.zst

15
pacman/PKGBUILD Normal file
View File

@@ -0,0 +1,15 @@
pkgname=creddy
pkgver=0.6.5
pkgrel=1
pkgdesc="A friendly credential manager"
arch=('x86_64')
url="https://git.jfmonty2.com/jfmonty2/creddy"
depends=('cairo' 'desktop-file-utils' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme' 'pango' 'webkit2gtk-4.1')
options=('!strip' '!debug')
install=${pkgname}.install
source=("${url}/releases/download/v${pkgver}/creddy_${pkgver}_amd64.deb")
sha256sums=('6153903ef7d58101afda5f0260e40cae6d28e2572402a34a9b11878e3d403a62')
package() {
tar -xvf data.tar.gz -C "${pkgdir}"
}

13
pacman/creddy.install Normal file
View File

@@ -0,0 +1,13 @@
post_install() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
update-desktop-database -q
}