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

Andrea Scarpino andrea at archlinux.org
Tue Sep 14 16:56:38 UTC 2010


    Date: Tuesday, September 14, 2010 @ 12:56:37
  Author: andrea
Revision: 90650

upgpkg: gpsd 2.95-4
python2 rebuild

Modified:
  gpsd/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-09-14 14:28:39 UTC (rev 90649)
+++ PKGBUILD	2010-09-14 16:56:37 UTC (rev 90650)
@@ -6,17 +6,17 @@
 
 pkgname=gpsd
 pkgver=2.95
-pkgrel=3
+pkgrel=4
 pkgdesc="GPS daemon and library to support USB/serial GPS devices"
 arch=('i686' 'x86_64')
 url="http://gpsd.berlios.de"
 license=('GPL')
-depends=('lesstif' 'libxaw' 'python' 'pth' 'libusb1' 'qt')
+depends=('lesstif' 'libxaw' 'python2' 'pth' 'libusb1' 'qt')
 optdepends=('php: generate a PHP status page for your GPS'
             'php-gd: image support for the PHP status page')
 backup=('etc/conf.d/gpsd'
         'etc/udev/rules.d/99-gpsd-usb.rules')
-options=('!libtool' 'force')
+options=('!libtool')
 install="${pkgname}.install"
 source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.gz"
         'gpsd')
@@ -28,8 +28,8 @@
 
   # install python to the same DESTDIR given make
   sed -i 's|--prefix=${prefix} # --root=$(DESTDIR)|--prefix=${prefix} --root=$(DESTDIR)|' Makefile.am Makefile.in
-
-  ./configure --prefix=/usr
+  
+  PYTHON=/usr/bin/python2 ./configure --prefix=/usr
   make
 }
 
@@ -55,4 +55,7 @@
   install -D -m755 gpsd.hotplug "${pkgdir}/lib/udev/gpsd.hotplug"
 
   install -D -m755 "${srcdir}/gpsd" "$pkgdir/etc/rc.d/gpsd"
+
+  # fix python 2.7 path
+  find "$pkgdir" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
 }




More information about the arch-commits mailing list