mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
main/gpsd: repackaging
New subpackages - py3-gpsd - python clients and bindings (new) gpsd-clients - clients other than python scripts Main gpsd package now contains the gpsd daemon only
This commit is contained in:
parent
0c75b697c0
commit
a474a886f7
@ -2,13 +2,13 @@
|
||||
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
|
||||
pkgname=gpsd
|
||||
pkgver=3.17
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="A GPS daemon"
|
||||
arch=all
|
||||
url="http://catb.org/gpsd/"
|
||||
license="BSD"
|
||||
makedepends="scons python2-dev libcap-dev ncurses-dev"
|
||||
subpackages="$pkgname-dev"
|
||||
makedepends="scons python3-dev libcap-dev ncurses-dev"
|
||||
subpackages="$pkgname-dev $pkgname-doc py3-$pkgname:_py $pkgname-clients:_clients"
|
||||
source="http://download-mirror.savannah.gnu.org/releases/gpsd/$pkgname-$pkgver.tar.gz
|
||||
timepps.h
|
||||
gpsd-use-local-timepps-header.patch
|
||||
@ -31,7 +31,9 @@ prepare() {
|
||||
build() {
|
||||
cd "$builddir"
|
||||
CPPFLAGS="-I. -DHAVE_SYS_TIMEPPS_H"
|
||||
scons -j1 prefix=/usr
|
||||
scons -j${JOBS:-1} \
|
||||
prefix=/usr \
|
||||
target_python=python3
|
||||
}
|
||||
|
||||
check() {
|
||||
@ -42,18 +44,34 @@ check() {
|
||||
package() {
|
||||
cd "$builddir"
|
||||
|
||||
mkdir -p "$pkgdir"/usr/lib
|
||||
cp -a "$builddir"/libgps*.so* "$pkgdir"/usr/lib/
|
||||
|
||||
mkdir -p "$pkgdir"/usr/sbin
|
||||
for a in gpsdecode gpsd gpsctl gpsdctl gpspipe; do
|
||||
install -m755 -D "$builddir/"$a "$pkgdir"/usr/sbin/
|
||||
done
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
_py() {
|
||||
local _py=${subpkgname##-*}
|
||||
local _pyver=${_py%py}
|
||||
pkgdesc="$pkgname library and clients for python $_pyver"
|
||||
mkdir -p "$subpkgdir"/usr/lib
|
||||
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
|
||||
|
||||
mkdir -p "$subpkgdir"/usr/bin
|
||||
for n in gpscat gpsfake gpsprof; do
|
||||
mv "$pkgdir"/usr/bin/${n} "$subpkgdir"/usr/bin/
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
_clients() {
|
||||
pkgdesc="$pkgname clients"
|
||||
mkdir -p "$subpkgdir"/usr/bin
|
||||
mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin
|
||||
}
|
||||
|
||||
sha512sums="71085053f600730e0f2de269c59ce0a17ae106ef01403f02d78418b267c6adb9818d541fba59eb23bf71cdb67c5442c82b4948d262ef7e74bb993dcae677a1b1 gpsd-3.17.tar.gz
|
||||
eb11fc19243d1789016d88eb7645bfe67c46304547781489bf36eb1dd4c252d523681ff835a6488fa0ef62b6b9e2f781c672279f4439f5d5640a3f214a113048 timepps.h
|
||||
ca534795df3033f15a2cd2f8cc6de5d71608f30418887f31df6dc1db1f283d5cf82920923a1a4adbcaa147e9e32458eee46aed3d64a9a83c950bb83d5e9d4f6e gpsd-use-local-timepps-header.patch
|
||||
|
Loading…
Reference in New Issue
Block a user