[arch-commits] Commit in geoclue/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Wed Jan 30 09:42:36 UTC 2019


    Date: Wednesday, January 30, 2019 @ 09:42:35
  Author: heftig
Revision: 344941

2.5.2-3

Modified:
  geoclue/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-30 09:20:00 UTC (rev 344940)
+++ PKGBUILD	2019-01-30 09:42:35 UTC (rev 344941)
@@ -19,18 +19,6 @@
 source=("git+https://gitlab.freedesktop.org/geoclue/geoclue.git#commit=$_commit")
 sha256sums=('SKIP')
 
-# 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
-# get your own set of keys. Feel free to contact foutrelis at archlinux.org for
-# 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 at archlinux.org for
-# more information.
-_mozilla_api_key=16674381-f021-49de-8622-3021c5942aff
-
 pkgver() {
   cd $pkgname
   git describe --tags | sed 's/-/+/g'
@@ -41,7 +29,9 @@
 }
 
 build() {
-  arch-meson $pkgname build -D dbus-sys-dir=/usr/share/dbus-1/system.d
+  arch-meson $pkgname build \
+    -D dbus-srv-user=geoclue \
+    -D dbus-sys-dir=/usr/share/dbus-1/system.d
   ninja -C build
 }
 
@@ -51,6 +41,12 @@
 
 package() {
   DESTDIR="$pkgdir" meson install -C build
+
+  echo 'u geoclue - "Geoinformation service" /var/lib/geoclue' |
+    install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+
+  echo 'd /var/lib/geoclue 0755 geoclue geoclue' |
+    install -Dm644 /dev/stdin "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
 }
 
 # vim:set sw=2 et:



More information about the arch-commits mailing list