talimat 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Tanım: USB/seri GPS cihazlarını desteklemek için GPS daemon ve kütüphane
  2. # URL: http://catb.org/gpsd/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: python libusb bluez desktop-file-utils scons docbook-xsl
  5. # Grup: kütüphane
  6. isim=gpsd
  7. surum=3.17
  8. devir=1
  9. kaynak=(https://download.savannah.gnu.org/releases/$isim/$isim-$surum.tar.gz
  10. gpsd.conf)
  11. derle() {
  12. cd $isim-$surum
  13. # fix python 2.7 path
  14. sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
  15. -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
  16. $(find . -name '*.py')
  17. export LINKFLAGS="${LDFLAGS}"
  18. scons prefix=/usr \
  19. systemd=no \
  20. libQgpsmm=no \
  21. gpsd_group=uucp \
  22. PYTHONPATH=/usr/bin/python2 \
  23. sbindir=/usr/bin
  24. scons build
  25. # Fix man pages path (FS#21715)
  26. sed -i 's|.so gps.1|.so man1/gps.1|' cgps.1 lcdgps.1 xgps.1 xgpsspeed.1
  27. export DESTDIR="$PKG"
  28. scons install
  29. install -D -m755 gpsinit -t "$PKG/usr/bin"
  30. chmod 755 "$PKG"/usr/bin/*
  31. install -D -m644 "$SRC/gpsd.conf" "$PKG/etc/gpsd"
  32. install -D -m644 "gpsd.rules" "$PKG/usr/lib/udev/rules.d/25-gpsd-usb.rules"
  33. install -D -m644 packaging/X11/xgps.desktop \
  34. "${PKG}/usr/share/applications/xgps.desktop"
  35. install -D -m644 packaging/X11/xgpsspeed.desktop \
  36. "${PKG}/usr/share/applications/xgpsspeed.desktop"
  37. install -D -m644 packaging/X11/gpsd-logo.png \
  38. "${PKG}/usr/share/gpsd/gpsd-logo.png"
  39. install -D -m644 COPYING "$PKG/usr/share/licenses/$isim/LICENSE"
  40. }