aboutsummaryrefslogblamecommitdiffstats
path: root/community/tracker/APKBUILD
blob: 9d684b03bee29256a7e1bad95172e4849c762f23 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                               
            
        

                                                 
                         

                          
                











                                 

            





                        
                                                

                                      
                                                                                       

         


                                                                 
                      

                                               
                        
                                                   


         
                                            


           
                                                              









                                                                     


                                                            
 
                                                  

 
                                                                                                                                                                   
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=tracker
pkgver=3.1.0
pkgrel=0
pkgdesc="Personal search tool and storage system"
url="https://wiki.gnome.org/Projects/Tracker"
arch="all !s390x !mips64"
license="GPL-2.0-or-later"
makedepends="
	asciidoc
	bash-completion
	dbus-dev
	glib-dev
	gobject-introspection-dev
	icu-dev
	json-glib-dev
	libsoup-dev
	libxml2-dev
	meson
	py3-setuptools
	sqlite-dev
	networkmanager-dev
	vala
	"
options="!check"
subpackages="
	$pkgname-dev
	$pkgname-doc
	$pkgname-lang
	lib$pkgname:libs
	$pkgname-bash-completion:bashcomp:noarch
	$pkgname-dbg
	$pkgname-testutils:_testutils"
source="https://download.gnome.org/sources/tracker/${pkgver%.*}/tracker-$pkgver.tar.xz"

build() {
	# https://gitlab.gnome.org/GNOME/tracker-miners/issues/91
	export LDFLAGS="$LDFLAGS -Wl,-z,stack-size=2097152"

	abuild-meson \
		-Ddocs=false \
		-Dsystemd_user_services=false \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

bashcomp() {
	pkgdesc="Bash completion for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share
}

_testutils() {
	pkgdesc="$pkgname (test utilities)"
	depends="tracker=$pkgver-r$pkgrel py3-gobject3 bash"

	amove usr/lib/tracker-3.0/trackertestutils
}

sha512sums="64f7f5e567448d12ca1b64767ba135792701f56716d989939aa5c930a6a468a64fbb2935d08b3a382eeaca0b54fed11d5d7e835b2f7e5a7c00d970b37631ff8b  tracker-3.1.0.tar.xz"