[arch-commits] Commit in gpsd/repos (4 files)

Antonio Rojas arojas at archlinux.org
Fri Jul 19 23:02:40 UTC 2019


    Date: Friday, July 19, 2019 @ 23:02:39
  Author: arojas
Revision: 492233

archrelease: copy trunk to community-staging-x86_64

Added:
  gpsd/repos/community-staging-x86_64/
  gpsd/repos/community-staging-x86_64/PKGBUILD
    (from rev 492232, gpsd/trunk/PKGBUILD)
  gpsd/repos/community-staging-x86_64/fix-python-libdir.patch
    (from rev 492232, gpsd/trunk/fix-python-libdir.patch)
  gpsd/repos/community-staging-x86_64/gpsd.conf
    (from rev 492232, gpsd/trunk/gpsd.conf)

-------------------------+
 PKGBUILD                |   78 ++++++++++++++++++++++++++++++++++++++++++++++
 fix-python-libdir.patch |   14 ++++++++
 gpsd.conf               |    5 ++
 3 files changed, 97 insertions(+)

Copied: gpsd/repos/community-staging-x86_64/PKGBUILD (from rev 492232, gpsd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-07-19 23:02:39 UTC (rev 492233)
@@ -0,0 +1,78 @@
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Tom Gundersen <teg at jklm.no>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Giacomo Rizzo <alt at free-os.it>
+
+pkgname=gpsd
+pkgver=3.19
+pkgrel=1
+pkgdesc="GPS daemon and library to support USB/serial GPS devices"
+arch=('x86_64')
+url="http://catb.org/gpsd/"
+license=('BSD')
+depends=('python' 'libusb' 'bluez-libs')
+optdepends=('gtk3: GUI frontends'
+            'php: generate a PHP status page for your GPS'
+            'php-gd: image support for the PHP status page'
+            'python-cairo: GUI frontends'
+            'python-gobject: GUI frontends'
+            'qt5-base: for Qgpsmm')
+makedepends=('scons' 'docbook-xsl' 'qt5-base' 'python' 'python2-gobject' 'python2-cairo') # remove python2 makedeps when scons moves to python3
+backup=('etc/default/gpsd')
+source=(https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz{,.sig}
+        $pkgname.conf fix-python-libdir.patch)
+sha256sums=('27dd24d45b2ac69baab7933da2bf6ae5fb0be90130f67e753c110a3477155f39'
+            'SKIP'
+            'dcfa71c4c730b486269995468bdcfa8e96bf3c282db1dadea9384d32015d277f'
+            '631cf609db1f4b26b94d324a9ca16624487781f0b8736c5c59d8c45acc5d7322')
+validpgpkeys=('EED4A0893DCC705DB309E202CCF29C7238522905') # Gary E. Miller <gem at rellim.com>
+# validpgpkeys=('41876B2F579463A499843D1DECC8208F8C6C738D') # Eric S. Raymond
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../fix-python-libdir.patch # Fix python install dir
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  export LINKFLAGS="${LDFLAGS}"
+  scons prefix=/usr \
+        systemd=yes \
+        gpsd_group=uucp \
+        sbindir=/usr/bin \
+        qt_versioned=5
+  scons build
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # Fix path in systemd files
+  sed -i 's|local/sbin|bin|' systemd/{gpsd.service,gpsdctl at .service}
+
+  export DESTDIR="${pkgdir}"
+  scons install
+  install -Dm755 gpsinit -t "${pkgdir}"/usr/bin
+  chmod 755 "${pkgdir}"/usr/bin/*
+
+  install -Dm644 "$srcdir/gpsd.conf" "${pkgdir}"/etc/default/gpsd
+
+  install -Dm644 "gpsd.rules" "${pkgdir}"/usr/lib/udev/rules.d/25-gpsd-usb.rules
+
+  install -Dm755 gpsd.hotplug "${pkgdir}"/usr/lib/udev/gpsd.hotplug
+
+  install -Dm644 packaging/X11/xgps.desktop \
+    "${pkgdir}"/usr/share/applications/xgps.desktop
+  install -Dm644 packaging/X11/xgpsspeed.desktop \
+    "${pkgdir}"/usr/share/applications/xgpsspeed.desktop
+  install -Dm644 packaging/X11/gpsd-logo.png \
+    "${pkgdir}"/usr/share/gpsd/gpsd-logo.png
+
+  install -Dm644 systemd/gpsd.service "${pkgdir}"/usr/lib/systemd/system/gpsd.service
+  install -Dm644 systemd/gpsd.socket "${pkgdir}"/usr/lib/systemd/system/gpsd.socket
+  install -Dm644 systemd/gpsdctl at .service "${pkgdir}"/usr/lib/systemd/system/gpsdctl at .service
+
+  install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: gpsd/repos/community-staging-x86_64/fix-python-libdir.patch (from rev 492232, gpsd/trunk/fix-python-libdir.patch)
===================================================================
--- community-staging-x86_64/fix-python-libdir.patch	                        (rev 0)
+++ community-staging-x86_64/fix-python-libdir.patch	2019-07-19 23:02:39 UTC (rev 492233)
@@ -0,0 +1,14 @@
+diff --git a/SConstruct b/SConstruct
+index b8f3fb1..e133ece 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -1034,8 +1034,6 @@ else:
+             # follow FHS, put in /usr/local/libXX, not /usr/libXX
+             # may be lib, lib32 or lib64
+             python_libdir = polystr(python_libdir)
+-            python_libdir = python_libdir.replace("/usr/lib",
+-                                                  "/usr/local/lib")
+ 
+         py_config_text = config.GetPythonValue('config vars',
+                                                PYTHON_SYSCONFIG_IMPORT,
+

Copied: gpsd/repos/community-staging-x86_64/gpsd.conf (from rev 492232, gpsd/trunk/gpsd.conf)
===================================================================
--- community-staging-x86_64/gpsd.conf	                        (rev 0)
+++ community-staging-x86_64/gpsd.conf	2019-07-19 23:02:39 UTC (rev 492233)
@@ -0,0 +1,5 @@
+# Default settings for gpsd.
+START_DAEMON="true"
+GPSD_OPTIONS=""
+DEVICES=""
+USBAUTO="true"


More information about the arch-commits mailing list