diff --git a/community/geoclue/0001-config-Add-phosh.patch b/community/geoclue/0001-config-Add-phosh.patch new file mode 100644 index 00000000000..0bf548df4c2 --- /dev/null +++ b/community/geoclue/0001-config-Add-phosh.patch @@ -0,0 +1,44 @@ +From 176e5e8fe546b3339fdbc53e69fc918d5e0c9bad Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Guido=20G=C3=BCnther?= +Date: Sun, 28 Feb 2021 16:08:31 +0100 +Subject: [PATCH] config: Add phosh +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This allows geoclue to use phosh (https://source.puri.sm/Librem5/phosh) +as agent. + +Signed-off-by: Guido Günther +--- + data/geoclue.conf.in | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/data/geoclue.conf.in b/data/geoclue.conf.in +index 5478bc2..b4326e1 100644 +--- a/data/geoclue.conf.in ++++ b/data/geoclue.conf.in +@@ -10,7 +10,7 @@ + + # Whitelist of desktop IDs (without .desktop part) of all agents we recognise, + # separated by a ';'. +-whitelist=@demo_agent@gnome-shell;io.elementary.desktop.agent-geoclue2 ++whitelist=@demo_agent@gnome-shell;io.elementary.desktop.agent-geoclue2;sm.puri.Phosh + + # Network NMEA source configuration options + [network-nmea] +@@ -122,6 +122,11 @@ allowed=true + system=true + users= + ++[sm.puri.Phosh] ++allowed=true ++system=true ++users= ++ + [epiphany] + allowed=true + system=false +-- +GitLab + diff --git a/community/geoclue/APKBUILD b/community/geoclue/APKBUILD index 83a1742cfef..d864fcf87f6 100644 --- a/community/geoclue/APKBUILD +++ b/community/geoclue/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Rasmus Thomsen pkgname=geoclue pkgver=2.5.7 -pkgrel=0 +pkgrel=1 pkgdesc="dbus geolocation service" url="https://www.freedesktop.org/wiki/Software/GeoClue/" arch="all" @@ -18,7 +18,10 @@ makedepends=" " subpackages="$pkgname-dev $pkgname-doc" install="$pkgname.pre-install" -source="https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/$pkgver/geoclue-$pkgver.tar.bz2" +source=" + https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/$pkgver/geoclue-$pkgver.tar.bz2 + 0001-config-Add-phosh.patch + " case "$CARCH" in s390x|mips64) _arch_opts="-D3g-source=false -Dcdma-source=false -Dmodem-gps-source=false" @@ -47,4 +50,5 @@ package() { DESTDIR="$pkgdir" meson install --no-rebuild -C build } -sha512sums="16ec15afa41910b7d993a9918dd3c068dea3f6c5be922b7ac772493cd6aabb0cad3fe2206b82c1a008781c3f1ddd8f4afd8f70b5d497920bea8ed5e473f0fd1f geoclue-2.5.7.tar.bz2" +sha512sums="16ec15afa41910b7d993a9918dd3c068dea3f6c5be922b7ac772493cd6aabb0cad3fe2206b82c1a008781c3f1ddd8f4afd8f70b5d497920bea8ed5e473f0fd1f geoclue-2.5.7.tar.bz2 +26b9a513d5ab47ab1495ddac4238284542c87429ef276265a33596d0e2c74934504418b288621c19199a67a6b13e3bbff000f35886128b78187ec3fd736d47c8 0001-config-Add-phosh.patch"