2023-08-21 00:19:08 +03:00
|
|
|
pkgname=goldwarden
|
2023-12-06 04:51:32 +03:00
|
|
|
pkgver=0.1.9
|
2023-08-21 00:19:08 +03:00
|
|
|
pkgrel=1
|
2023-08-21 00:21:08 +03:00
|
|
|
pkgdesc='A feature-packed Bitwarden compatible desktop integration'
|
2023-08-21 00:19:08 +03:00
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/quexten/$pkgname"
|
|
|
|
license=('MIT')
|
2023-09-20 01:13:09 +03:00
|
|
|
makedepends=('go' 'libfido2' 'gcc' 'wayland' 'libx11' 'libxkbcommon' 'libxkbcommon-x11' 'libxcursor' 'base-devel' 'vulkan-headers' 'egl-wayland')
|
2023-08-21 00:19:08 +03:00
|
|
|
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
|
|
|
|
sha256sums=('7d38db887437a58758e5f183d4951cf7c4d1b099f37ff6f5e95fb98735634983')
|
|
|
|
|
|
|
|
prepare(){
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
mkdir -p build/
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
|
|
|
export CGO_CFLAGS="${CFLAGS}"
|
|
|
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
|
|
|
export CGO_LDFLAGS="${LDFLAGS}"
|
|
|
|
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
|
|
|
|
export CGO_ENABLED=1
|
|
|
|
|
|
|
|
go mod tidy
|
2023-08-21 21:08:46 +03:00
|
|
|
go build -o build/$pkgname .
|
2023-08-21 00:19:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
|
2023-08-21 20:57:23 +03:00
|
|
|
install -Dm644 "$srcdir/$pkgname-$pkgver/resources/com.quexten.goldwarden.policy" "$pkgdir/usr/share/polkit-1/actions/com.quexten.goldwarden.policy"
|
2023-09-19 22:49:56 +03:00
|
|
|
chown root:root "$pkgdir/usr/share/polkit-1/actions/com.quexten.goldwarden.policy"
|
2023-08-21 01:42:03 +03:00
|
|
|
}
|