100 lines
2.4 KiB
Bash
100 lines
2.4 KiB
Bash
# Template file for 'gpsd'
|
|
pkgname=gpsd
|
|
version=3.17
|
|
revision=4
|
|
build_style=scons
|
|
patch_args="-p1"
|
|
make_build_args="dbus_export=0 gpsd_user=gpsd gpsd_group=gpsd sbindir=/usr/bin
|
|
udevdir=/usr/lib/udev CC=${CC} qt_versioned=5"
|
|
make_install_args="$make_build_args"
|
|
make_install_target=udev-install
|
|
hostmakedepends="pkg-config bc python libxslt xmlto asciidoc ncurses"
|
|
makedepends="eudev-libudev-devel ntp libusb-devel ncurses-devel
|
|
pps-tools-devel libcap-devel libbluetooth-devel"
|
|
short_desc="A GPS/AIS receiver monitoring daemon"
|
|
maintainer="uriahheep <uriahheep@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://www.catb.org/gpsd/"
|
|
distfiles="http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${version}.tar.gz"
|
|
checksum=68e0dbecfb5831997f8b3d6ba48aed812eb465d8c0089420ab68f9ce4d85e77a
|
|
system_accounts="gpsd"
|
|
|
|
subpackages="gpsd-devel"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
subpackages+=" gpsd-python gpsd-xgps gpsd-qt gpsd-qt-devel"
|
|
makedepends+=" qt5-devel python-devel"
|
|
else
|
|
make_build_args+=" python=0"
|
|
fi
|
|
|
|
pre_build() {
|
|
unset CPPFLAGS
|
|
}
|
|
|
|
pre_install() {
|
|
export DESTDIR=${DESTDIR}
|
|
makejobs="-j1"
|
|
}
|
|
|
|
post_install() {
|
|
vsv gpsd
|
|
vlicense COPYING
|
|
vlicense AUTHORS
|
|
}
|
|
|
|
gpsd-python_package() {
|
|
short_desc+=" - Python2 tools/bindings"
|
|
depends="python gnuplot ${sourcepkg}>=${version}_${revision}"
|
|
pycompile_module="gps"
|
|
pkg_install() {
|
|
vmove usr/lib/python2.7
|
|
vmove usr/bin/gegps
|
|
vmove usr/bin/gpscat
|
|
vmove usr/bin/gpsfake
|
|
vmove usr/bin/gpsprof
|
|
vmove usr/share/man/man1/gegps.1
|
|
vmove usr/share/man/man1/gpscat.1
|
|
vmove usr/share/man/man1/gpsfake.1
|
|
vmove usr/share/man/man1/gpsprof.1
|
|
}
|
|
}
|
|
|
|
gpsd-xgps_package() {
|
|
short_desc+=" - PyGI based clients"
|
|
depends="${sourcepkg}-python>=${version}_${revision} gtk+3 python-gobject"
|
|
pkg_install() {
|
|
vmove usr/bin/xgps
|
|
vmove usr/bin/xgpsspeed
|
|
vmove usr/share/man/man1/xgps*
|
|
}
|
|
}
|
|
|
|
gpsd-qt_package() {
|
|
short_desc+=" - Qt5 bindings"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/lib/libQgpsmm.so.*
|
|
}
|
|
}
|
|
|
|
gpsd-qt-devel_package() {
|
|
short_desc+=" - Qt5 development files"
|
|
depends="qt5-devel ${sourcepkg}-devel>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/lib/libQgpsmm.so
|
|
vmove usr/lib/pkgconfig/Qgpsmm.pc
|
|
vmove usr/lib/libQgpsmm.prl
|
|
vmove usr/share/man/man3/libQgpsmm.3
|
|
}
|
|
}
|
|
|
|
gpsd-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig/libgps*.pc
|
|
vmove usr/lib/libgps.so
|
|
}
|
|
}
|