2023-08-20 23:19:08 +02:00
|
|
|
pkgname=goldwarden
|
2024-04-28 17:59:18 +02:00
|
|
|
pkgver=0.2.14
|
2023-12-21 12:59:32 +01:00
|
|
|
pkgrel=1
|
2023-08-20 23:21:08 +02:00
|
|
|
pkgdesc='A feature-packed Bitwarden compatible desktop integration'
|
2023-12-30 21:17:02 +01:00
|
|
|
arch=('x86_64' 'aarch64')
|
2023-08-20 23:19:08 +02:00
|
|
|
url="https://github.com/quexten/$pkgname"
|
|
|
|
license=('MIT')
|
2023-12-21 12:39:36 +01:00
|
|
|
depends=('libfido2')
|
2023-12-23 14:04:57 +01:00
|
|
|
makedepends=('go' 'gcc' 'base-devel')
|
2023-08-20 23:19:08 +02:00
|
|
|
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
|
2023-12-21 12:39:36 +01:00
|
|
|
sha256sums=('57555dab4afd4fc60785e8ad34f41932988b4cd2ce130daaa719625a0e455481')
|
2023-08-20 23:19:08 +02:00
|
|
|
|
|
|
|
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 20:08:46 +02:00
|
|
|
go build -o build/$pkgname .
|
2023-08-20 23:19:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
|
2023-08-21 19:57:23 +02:00
|
|
|
install -Dm644 "$srcdir/$pkgname-$pkgver/resources/com.quexten.goldwarden.policy" "$pkgdir/usr/share/polkit-1/actions/com.quexten.goldwarden.policy"
|
2023-09-19 21:49:56 +02:00
|
|
|
chown root:root "$pkgdir/usr/share/polkit-1/actions/com.quexten.goldwarden.policy"
|
2023-08-21 00:42:03 +02:00
|
|
|
}
|