🔒 Repository is read-only – file editing is disabled.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
pkgname: gpsd
pkgver: '3.27.5'
pkgrel: '1'
pkgdesc: GPS daemon and library to support USB/serial GPS devices
url: 'https://catb.org/gpsd/'
arch: x86_64
license:
- BSD
depends:
- python
makedepends:
- tar
- asciidoc
- bluez
- docbook-xsl
- gtk3
- libusb
- python
- qtbase
- scons
- python-gobject
- python-cairo
source:
- 'https://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${pkgver}.tar.gz'
sha256sums:
- 409873f5048462ef1ac413a51ab35caa8b50b31be62b3347bee1cc2994e7c649
hooks:
pre-install: |
name=gpsd
version=3.27.5
release=1
INFO="\033[1;36m"
NORMAL="\033[0;39m"
if ! (getent group uucp > /dev/null); then
printf "${INFO}Creating uucp group${NORMAL}\n"
groupadd -g 89 uucp
fi
build: |
_pythonpath=$(python -c "from sysconfig import get_path; print(get_path('platlib'))")
cd ${pkgname}-${pkgver}
scons LINKFLAGS="${LDFLAGS}" \
CC=$CC CXX=$CXX CCFLAGS="$CFLAGS" \
CXXFLAGS="$CXXFLAGS" prefix=/usr \
destdir=${PKGDIR} DESTDIR=${PKGDIR} \
sbindir=/usr/bin \
libQgpsmm=no \
systemd=yes \
gpsd_group=uucp \
python_libdir=$_pythonpath
scons build
export DESTDIR=${PKGDIR}
scons prefix=/usr destdir=${PKGDIR} DESTDIR=${PKGDIR} install
# Missing files
install -Dm755 gpsinit -t ${PKGDIR}/usr/bin
chmod 755 ${PKGDIR}/usr/bin/*
install -Dm644 ${pkgname}-${pkgver}/gpsd.rules ${PKGDIR}/usr/lib/udev/rules.d/25-gpsd-usb.rules
install -Dm755 gpsd.hotplug ${PKGDIR}/usr/lib/udev/gpsd.hotplug
sed -i "s@gps%n"@gps%n" , MODE="0666"@g" \
${PKGDIR}/usr/lib/udev/rules.d/25-gpsd-usb.rules
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 ${pkgname}-${pkgver}/systemd/{gpsd.service,gpsd.socket,gpsdctl@.service} -t \
${PKGDIR}/usr/lib/systemd/system/
install -Dm644 COPYING ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
package: |
true