BastionGuard/pkgbuild/PKGBUILD
specialworld83 d34e319fbe Public release
2026-02-27 21:37:06 +01:00

70 lines
1.9 KiB
Bash

# Maintainer: BastionGuard info@bastionguard.it
pkgname=bastionguard
pkgver=1.0
pkgrel=1
pkgdesc="Transparent security control plane for Linux desktops
BastionGuard is not a trust us security product.
It is a security control plane for Linux desktops where every protection
mechanism is explicit, deterministic, and observable.
Unlike most desktop security tools, which hide decisions behind opaque
engines, cloud scoring, or silent automation, BastionGuard exposes
what is happening, why it is happening, and how protections are applied.
Users and administrators can see, control, and reason about every
security decision."
arch=('x86_64')
url="https://bastionguard.eu/"
license=('GPL3')
depends=(
'glibc' 'gcc-libs'
'gtkmm-4.0' 'gtk4' 'glib2' 'glibmm' 'pangomm-2.48' 'pango' 'cairomm' 'cairo'
'harfbuzz' 'gdk-pixbuf2' 'graphene' 'libsigc++' 'boost' 'libxcomposite'
'libsoup3' 'libsecret' 'curl' 'openssl' 'sqlite' 'libidn2' 're2' 'yara' 'polkit'
'systemd-libs' 'samba'
'libglvnd' 'vulkan-icd-loader'
'boost-libs' 'nlohmann-json'
'nginx' 'php' 'clamav' 'dnsmasq' 'bubblewrap' 'rsync'
)
makedepends=(
'cmake' 'pkgconf' 'gettext' 'python'
'meson' 'ninja' 'mm-common' 'cargo-c'
)
options=('strip')
provides=('bastionguard')
conflicts=('bastionguard')
source=("git+https://git.bastionguard.eu/specialworld83/BastionGuard.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_srcname"
printf "0.r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "$srcdir/$_srcname"
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DBG_PACKAGING=ON \
-DBG_DEBIAN_NO_INSTALL_CODE=ON \
-DENABLE_SYSTEMD_SERVICES=OFF \
-DENABLE_USER_AGENT_AUTO=OFF \
-DINSTALL_NGINX_DEFAULTS=OFF
cmake --build build -- -j"$(nproc)"
}
package() {
cd "$srcdir/$_srcname"
DESTDIR="$pkgdir" cmake --install build
}