* update geoclue to 2.7.2-1

This commit is contained in:
Alexander Baldeck 2024-11-07 11:16:23 +01:00
parent 479ca02bc7
commit f4f3a42be3
3 changed files with 46 additions and 17 deletions

36
geoclue/.SRCINFO Normal file
View File

@ -0,0 +1,36 @@
pkgbase = geoclue
pkgdesc = Modular geoinformation service built on the D-Bus messaging system
pkgver = 2.7.2
pkgrel = 1
url = https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = LGPL-2.1-or-later
license = GPL-2.0-or-later
makedepends = git
makedepends = glib2-devel
makedepends = gobject-introspection
makedepends = gtk-doc
makedepends = libnotify
makedepends = meson
makedepends = systemd
makedepends = vala
depends = avahi
depends = gcc-libs
depends = glib2
depends = glibc
depends = json-glib
depends = libmm-glib
depends = libsoup3
optdepends = libnotify: Demo Agent
provides = geoclue2=2.7.2-1
conflicts = geoclue2
replaces = geoclue2
backup = etc/geoclue/geoclue.conf
source = git+https://gitlab.freedesktop.org/geoclue/geoclue.git#tag=2.7.2
b2sums = e77c32743762d346e4decdf4893a9299db56f9ef98f7b17633464788ec04dda2d2cfe740192bfbce67acc2e207943ee1af6c723214d8d850cd849e380867e126
pkgname = geoclue

3
geoclue/.nvchecker.toml Normal file
View File

@ -0,0 +1,3 @@
[geoclue]
source = "git"
git = "https://gitlab.freedesktop.org/geoclue/geoclue.git"

View File

@ -3,8 +3,8 @@
# Contributor: György Balló <ballogy@freestart.hu>
pkgname=geoclue
pkgver=2.7.1
pkgrel=3.1
pkgver=2.7.2
pkgrel=1
pkgdesc="Modular geoinformation service built on the D-Bus messaging system"
url="https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
@ -14,6 +14,9 @@ license=(
)
depends=(
avahi
gcc-libs
glib2
glibc
json-glib
libmm-glib
libsoup3
@ -35,10 +38,8 @@ replaces=(geoclue2)
backup=(etc/geoclue/geoclue.conf)
source=(
"git+https://gitlab.freedesktop.org/geoclue/geoclue.git#tag=$pkgver"
0001-WIP-Use-Google-Maps-Platform-by-default.patch
)
b2sums=('0e8ab05d8124598d9bd306bb2f81a9c4e47c02b710265048e19d950d8587e3ff729234b2e07847c3f0b9118c7b89153f9e59b6414a6660007203e7a831ce839b'
'192e35693aa8145ac3ad23ee0fb64a247298e57959095281614cc33be27e60ad7ce16117df043ab7bff9ca721cce3e82cea0bfaddb9c5996b24be7cb4ebd95ce')
b2sums=('e77c32743762d346e4decdf4893a9299db56f9ef98f7b17633464788ec04dda2d2cfe740192bfbce67acc2e207943ee1af6c723214d8d850cd849e380867e126')
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
# Note: These are for Arch Linux use ONLY. For your own distribution, please
@ -46,25 +47,14 @@ b2sums=('0e8ab05d8124598d9bd306bb2f81a9c4e47c02b710265048e19d950d8587e3ff729234b
# more information.
_google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM
# Mozilla API keys (see https://location.services.mozilla.com/api)
# Note: These are for Arch Linux use ONLY. For your own distribution, please
# get your own set of keys. Feel free to contact heftig@archlinux.org for
# more information.
_mozilla_api_key=e05d56db0a694edc8b5aaebda3f2db6a
prepare() {
cd geoclue
# Use Google Maps Platform as the default geolocation service
# https://gitlab.archlinux.org/archlinux/packaging/packages/geoclue/-/issues/1
git apply -3 ../0001-WIP-Use-Google-Maps-Platform-by-default.patch
}
build() {
local meson_options=(
-D dbus-srv-user=geoclue
-D google-api-key="$_google_api_key"
-D mozilla-api-key="$_mozilla_api_key"
-D default-wifi-url="https://www.googleapis.com/geolocation/v1/geolocate?key=$_google_api_key"
)
arch-meson geoclue build "${meson_options[@]}"