void-packages/srcpkgs/localsearch/template

65 lines
2.4 KiB
Bash

# Template file for 'localsearch'
pkgname=localsearch
version=3.8.0
revision=1
build_style=meson
build_helper=qemu
# missing libgrss for miner_rss
configure_args="-Dextract=true -Dcue=enabled -Dexif=enabled
-Dgif=enabled -Dgsf=enabled -Diptc=enabled -Diso=enabled -Djpeg=enabled
-Dpdf=enabled -Dplaylist=enabled -Dpng=enabled -Draw=enabled
-Dtiff=enabled -Dxml=enabled -Dxmp=enabled -Dxps=enabled
-Dminer_rss=false -Dbattery_detection=upower -Dcharset_detection=icu
-Dgeneric_media_extractor=gstreamer -Dgstreamer_backend=discoverer
-Dsystemd_user_services=false -Dnetwork_manager=enabled
$(vopt_feature landlock)"
hostmakedepends="pkg-config glib-devel intltool asciidoc"
makedepends="tinysparql-devel ffmpeg6-devel dbus-devel exempi-devel
libglib-devel libgexiv2-devel gstreamer1-devel icu-devel libcue-devel
libexif-devel libgsf-devel libgxps-devel libiptcdata-devel libjpeg-turbo-devel
libosinfo-devel libpng-devel libseccomp-devel tiff-devel libxml2-devel
poppler-glib-devel totem-pl-parser-devel libgirepository-devel
upower-devel zlib-devel gst-plugins-base1-devel giflib-devel
NetworkManager-devel libharfbuzz"
checkdepends="python3-gobject localsearch tinysparql dbus gst-plugins-good1 gst-plugins-bad1"
short_desc="File search framework of the GNOME desktop"
maintainer="oreo639 <oreo6391@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://tracker.gnome.org/"
changelog="https://gitlab.gnome.org/GNOME/localsearch/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/localsearch/${version%.*}/localsearch-${version}.tar.xz"
checksum=e4e83a1daebb5263915b45b719731e3f7041d959cbd637ea29afbe910c92bbf9
make_check_pre="dbus-run-session"
make_check=ci-skip # TODO: d-bus tests timeout ci
build_options="landlock"
desc_option_landlock="Enable enhanced sandboxing (requires linux5.13+ kernel support)"
build_options_default="landlock"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
CFLAGS+=" -DSYS_landlock_create_ruleset=444 -DSYS_landlock_add_rule=445 -DSYS_landlock_restrict_self=446"
configure_args+=" -Dfanotify=disabled"
fi
pre_check() {
# Tests must run inside of home directory for changes to be tracked
oldhome="$HOME"
HOME="${wrksrc}"
}
post_check() {
HOME="$oldhome"
}
tracker-miners_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - transitional dummy package"
build_style=meta
}
tracker3-miners_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - transitional dummy package"
build_style=meta
}