2023-08-14 03:34:04 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
|
|
|
|
pkgname=qubes-db-vm
|
|
|
|
subpackages="$pkgname-openrc"
|
2023-08-16 01:58:40 +00:00
|
|
|
pkgver=4.2.4
|
2023-11-28 16:16:51 +00:00
|
|
|
pkgrel=2
|
2023-08-14 03:34:04 +00:00
|
|
|
_gittag="v$pkgver"
|
|
|
|
pkgdesc="QubesDB libs and daemon service."
|
|
|
|
arch="x86_64"
|
|
|
|
url="https://github.com/QubesOS/qubes-core-qubesdb"
|
|
|
|
license='GPL'
|
|
|
|
options="!check" # No testsuite
|
|
|
|
depends="python3"
|
|
|
|
makedepends="
|
|
|
|
python3-dev
|
2023-08-14 17:26:20 +00:00
|
|
|
py3-setuptools
|
2023-08-14 03:34:04 +00:00
|
|
|
qubes-libvchan-xen-dev
|
|
|
|
qubes-libvchan-xen
|
|
|
|
"
|
|
|
|
source="
|
|
|
|
$pkgname-$_gittag.tar.gz::https://github.com/QubesOS/qubes-core-qubesdb/archive/refs/tags/$_gittag.tar.gz
|
|
|
|
0001-musl-build.patch
|
|
|
|
0001-create_pidfile.patch
|
|
|
|
qubes-db.openrc
|
|
|
|
"
|
|
|
|
builddir="$srcdir"/qubes-core-qubesdb-$pkgver
|
2023-08-16 01:58:40 +00:00
|
|
|
subpackages="$pkgname-dev $pkgname-openrc"
|
2023-08-14 03:34:04 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
# Build all with python bindings
|
|
|
|
CFLAGS="$CFLAGS -Wno-implicit-function-declaration" make all BACKEND_VMM=xen SYSTEMD=0
|
|
|
|
|
|
|
|
# replace all shebangs with /bin/sh as qubes expects bash
|
|
|
|
# shellcheck disable=SC2013
|
|
|
|
for i in $(grep '/bin/sh' -Rl .); do
|
|
|
|
sed -i 's|/bin/sh|/bin/bash|' "$i"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# Install all with python bindings
|
|
|
|
make install DESTDIR=$pkgdir LIBDIR=/usr/lib BINDIR=/usr/bin SBINDIR=/sbin
|
|
|
|
install -Dm 755 "$srcdir"/qubes-db.openrc "$pkgdir"/etc/init.d/qubes-db
|
|
|
|
}
|
|
|
|
sha512sums="
|
2023-08-16 01:58:40 +00:00
|
|
|
c252772c53b3cb6727f6d7c1ea13d54fc0a55e6dd558244da12e17b8a9ab80c338281f6123dc1f08965d310cab5ef8684266bfd4f47ac344c4f35851ce5f7f9f qubes-db-vm-v4.2.4.tar.gz
|
2023-08-14 03:34:04 +00:00
|
|
|
af86268c264c843b94f9cefb735b9d078dc58819c890fc0a31dd79fa2761d3c2fa87aed73752bca1db07948ba86ecfe16a745b19672ccc10dfb9461df24aa207 0001-musl-build.patch
|
2023-08-16 01:58:40 +00:00
|
|
|
892eb29b9bab4d9e662678d13a5607df04cdb024c2f28332f40fa4b7c644476a4b26a9fc038dfcdac1e0b8d328165d21d50d894d2c1e27f792287dd57449e7eb 0001-create_pidfile.patch
|
2023-08-14 03:34:04 +00:00
|
|
|
3d87f82d3637cf10bf1a3058ebbd2590ab17f65d1b49058f62d892f126635497abd5045f6797bc8069e5de08bb6e08fc6146deb6422090ad02122764cc6d72f0 qubes-db.openrc
|
|
|
|
"
|