aports/community/tinysparql/APKBUILD
Sertonix 6bd45b53fb */*: remove --no-rebuild from meson test
meson 1.7.0 and later don't include test build targets in the default
build target. With --no-rebuild the test targets aren't build at all.
Removing --no-rebuild shouldn't cause any false rebuilds since the files
aren't changed between the build() and check() step.

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891
Ref https://github.com/mesonbuild/meson/pull/10413
2025-05-09 20:48:14 +00:00

82 lines
1.6 KiB
Text

# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <fossdd@pwned.life>
pkgname=tinysparql
pkgver=3.9.2
pkgrel=0
pkgdesc="Personal search tool and storage system"
url="https://tracker.gnome.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
asciidoc
bash
bash-completion-dev
dbus-dev
docbook-xsl-nons
glib-dev
gobject-introspection-dev
icu-dev
json-glib-dev
libsoup3-dev
libstemmer-dev
libxml2-dev
meson
py3-gobject3
py3-setuptools
sqlite-dev
networkmanager-dev
vala
gi-docgen
graphviz
"
checkdepends="
dbus
mandoc
"
subpackages="
$pkgname-dbg
$pkgname-dev
$pkgname-doc
$pkgname-lang
lib$pkgname:libs
$pkgname-bash-completion
"
source="https://download.gnome.org/sources/tinysparql/${pkgver%.*}/tinysparql-$pkgver.tar.xz"
# for backwards compatibility
replaces="tracker"
provides="tracker=$pkgver-r$pkgrel"
build() {
abuild-meson \
-Db_lto=true \
-Ddocs=true \
-Dman=true \
-Dsystemd_user_services=false \
-Dintrospection=enabled \
-Dtests="$(want_check && echo true || echo false)" \
. output
meson compile -C output
}
check() {
XDG_RUNTIME_DIR="$(mktemp -p "$builddir" -d)" \
MANPATH="$builddir"/output/docs \
dbus-run-session -- \
meson test -t 10 --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
libs() {
default_libs
replaces="libtracker"
provides="libtracker=$pkgver-r$pkgrel"
amove usr/lib/girepository-1.0
}
sha512sums="
8d70571ada4097c56fb45844489405cc4b468f33ef5bb4db7020ad77882701097499111628ffbdac7e5dafb1f85b5801a3c2166ccf070a745a2f63b52ba3e314 tinysparql-3.9.2.tar.xz
"