void-packages/srcpkgs/tracker/template
Đoàn Trần Công Danh 4f75cf25fd srcpkgs/t*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

53 lines
1.5 KiB
Bash

# Template file for 'tracker'
pkgname=tracker
version=2.3.6
revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dfts=true -Dfunctional_tests=false
-Djournal=true -Dman=true -Dnetwork_manager=enabled -Dstemmer=disabled
-Dsystemd_user_services=no"
hostmakedepends="gettext pkg-config glib-devel vala"
makedepends="dbus-devel libglib-devel icu-devel json-glib-devel
libsoup-devel libxml2-devel sqlite-devel NetworkManager-devel
bash-completion"
checkdepends="tar"
short_desc="Personal search tool and storage system"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://live.gnome.org/Tracker"
distfiles="${GNOME_SITE}/tracker/${version%.*}/tracker-${version}.tar.xz"
checksum=bd1eb4122135296fa7b57b1c3fa0ed602cf7d06c0b8e534d0bd17ff5f97feef2
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" dbus"
fi
post_patch() {
if [ "$CROSS_BUILD" ]; then
# Tell the build system that we have internal fts5 in sqlite3
vsed -i "/\[properties\]/a sqlite3_has_fts5 = 'true'" xbps_meson.cross
fi
}
tracker-devel_package() {
depends="libglib-devel libtracker>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share/gir-1.0
vmove usr/share/vala
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libtracker_package() {
shlib_provides="libtracker-common.so libtracker-data.so"
short_desc+=" - shared libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove "usr/lib/tracker-2.0/*.so*"
vmove usr/lib/girepository-1.0
}
}