Commit 0a5dd1b2 authored by Luca Weiss's avatar Luca Weiss Committed by Leo

community/gpsd: upgrade to 3.22

parent 572f2f19
# Contributor: Nathan Angelacos <nangel@alpinelinux.org>
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=gpsd
pkgver=3.21
pkgver=3.22
pkgrel=0
pkgdesc="GPS daemon"
arch=all
url="http://catb.org/gpsd/"
license="BSD-2-Clause"
makedepends="scons python3-dev libcap-dev ncurses-dev"
# TODO Git master doesn't seem to use libxslt & docbook-xsl anymore
makedepends="scons asciidoctor libxslt docbook-xsl python3-dev libcap-dev ncurses-dev"
subpackages="$pkgname-dev $pkgname-doc py3-$pkgname:_py $pkgname-clients:_clients"
source="https://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-$pkgver.tar.gz
timepps.h
......@@ -32,10 +33,11 @@ prepare() {
}
build() {
CPPFLAGS="$CPPFLAGS -I. -DHAVE_SYS_TIMEPPS_H"
CPPFLAGS="$CPPFLAGS -I$builddir -DHAVE_SYS_TIMEPPS_H"
scons -j${JOBS:-1} \
prefix=/usr \
target_python=python3 \
python_shebang=/usr/bin/python3 \
dbus_export=no \
systemd=no
}
......@@ -46,9 +48,6 @@ check() {
package() {
DESTDIR="$pkgdir" scons install
# fix python interpreter path
sed -e "s,#!/usr/bin/\(python[23]\?\|env \+python[23]\?\),#!/usr/bin/python3},g" -i \
gegps gpscat gpsfake xgps xgpsspeed gpsprof gps/*.py
install -m755 -D "$srcdir"/gpsd.initd "$pkgdir"/etc/init.d/gpsd
install -m644 -D "$srcdir"/gpsd.confd "$pkgdir"/etc/conf.d/gpsd
}
......@@ -75,8 +74,8 @@ _clients() {
mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin
}
sha512sums="7fbff3698a44ef24ce4631f1d0c5192b70c2e47f28e61372d8d0c437a6b4aeee459b08dcd69d9dc02bbda7b56949fd01ac57460fb922b5f807455f4ab3e91f2d gpsd-3.21.tar.gz
sha512sums="4ed08e92b17f8f1bcef6be66f7bb232994d419d1638af0d435a5b03800dcde070accdecb707ea27cceebd333ab597fd0b3a77f405542b488626cb4f1efbe856b gpsd-3.22.tar.gz
eb11fc19243d1789016d88eb7645bfe67c46304547781489bf36eb1dd4c252d523681ff835a6488fa0ef62b6b9e2f781c672279f4439f5d5640a3f214a113048 timepps.h
b692c9fc77a9db3fc621693d3b9e3ef9bc2efbbc7b01651168d7b928d29d48a489b8859930bad01b6021e211372e069a726b78dd5938385ed4ae0153b38f4170 gpsd-use-local-timepps-header.patch
347b002367b89381a49e7dc0c973cf0f8f08a0d8582dc33f16a2547bfc93db48e0585ae18690e1d0f93819062108cec12c6d7e5257b65a565391130d13dc86fb gpsd-use-local-timepps-header.patch
51319247eb78c3021d3eb897cb5d6026cc09d46a532a245a835459ed525947ffb6239f08126dd7e344de52e3b0387226bce060191ec3f14f99fc9f255d96f8ea gpsd.initd
75dbfe39eb900cc9587dd70794ee77ae2230765bbede47760ca227145aa3f2290b6995335ffcfeae6cd86f56b01ca87367548f4fbcf810aff1bc012b7416deef gpsd.confd"
diff --git a/SConstruct b/SConstruct
index 33e0ff3..cf39fd9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -319,7 +319,7 @@ for var in import_env:
diff --git a/SConscript b/SConscript
index d0b0908ec..4ed6a0ef8 100644
--- a/SConscript
+++ b/SConscript
@@ -526,7 +526,7 @@ for var in import_env:
envs[var] = os.environ[var]
envs["GPSD_HOME"] = os.getcwd()
envs["GPSD_HOME"] = os.getcwd() + os.sep + 'gpsd'
-env = Environment(tools=["default", "tar", "textfile"], options=opts, ENV=envs)
+env = Environment(tools=["default", "tar", "textfile"], options=opts, ENV=envs, CPPPATH=".")
# Minimal build turns off every option not set on the command line,
if ARGUMENTS.get('minimal'):
# Release identification begins here.
#
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment