Skip to content

Commit c1ec115

Browse files
author
Andriy Beregovenko
committed
Add Debian package files
1 parent 3192cae commit c1ec115

File tree

8 files changed

+817
-0
lines changed

8 files changed

+817
-0
lines changed

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mavproxy (1.8.70) UNRELEASED; urgency=medium
2+
3+
* Initial release.
4+
5+
-- Andrii Beregovenko <[email protected]> Sat, 09 Mar 2024 15:40:20 +0100

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

debian/control

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Source: mavproxy
2+
Section: python
3+
Priority: optional
4+
Maintainer: Andrii Beregovenko <[email protected]>
5+
Build-Depends: debhelper (>= 10),
6+
dh-python,
7+
python3-all-dev (>= 3.3.3),
8+
libxml2-dev, libxslt1-dev, zlib1g-dev,
9+
python3-setuptools (>= 0.6.29),
10+
python3-numpy,
11+
python3-pytest,
12+
X-Python-Version: all
13+
Standards-Version: 4.5.1
14+
Homepage: https://github.com/ArduPilot/MAVProxy
15+
16+
Package: python3-mavproxy
17+
Architecture: any
18+
Multi-Arch: same
19+
Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
20+
Provides: ${python3:Provides}
21+
Description: MAVProxy is oriented towards command line operation
22+
A MAVLink protocol proxy and ground station. MAVProxy is oriented
23+
towards command line operation, and is suitable for embedding in
24+
small autonomous vehicles or for using on ground control stations.
25+
It also features a number of graphical tools such as a slipmap for
26+
satellite mapping view of the vehicles location, and status console
27+
and several useful vehicle control modules. MAVProxy is extensible
28+
via a modules system - see the modules subdirectory for some example
29+
modules. MAVProxy was developed by CanberraUAV for use in the 2012
30+
Outback Challenge, and includes a module for the CanberraUAV search
31+
and rescue system.
32+
.
33+
See https://ardupilot.org/mavproxy/index.html for more information
34+
on how to use MAVProxy.

debian/copyright

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

debian/patches/series

Whitespace-only changes.

debian/rules

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
4+
# Uncomment this to turn on verbose mode.
5+
#export DH_VERBOSE=1
6+
7+
PY3VERS := $(shell py3versions -vs)
8+
PY3VER := $(shell py3versions -vd)
9+
10+
include /usr/share/dpkg/pkg-info.mk
11+
12+
include /usr/share/python3/python.mk
13+
14+
# Some locales trigger reproducibility issues in html documentation
15+
export LC_ALL=C.UTF-8
16+
export LANG=C.UTF-8
17+
18+
prebuild: prebuild-stamp
19+
prebuild-stamp:
20+
touch $@
21+
22+
build-arch: build
23+
build-indep: build
24+
build: build3-stamp
25+
26+
build3-stamp: $(PY3VERS:%=build3-python%) doc-build3-python$(PY3VER)
27+
touch $@
28+
build3-python%: prebuild
29+
python$* setup.py build
30+
touch $@
31+
doc-build3-python$(PY3VER): build3-python$(PY3VER)
32+
touch $@
33+
34+
clean:
35+
dh_testdir
36+
dh_testroot
37+
rm -f build*-stamp build*-python* dbg-build*-python* prebuild-stamp
38+
rm -rf build dist __pycache__
39+
-find -name '*.py[co]' | xargs rm -f
40+
rm -rf [23].[0-9]
41+
dh_clean
42+
43+
install: build install-prereq $(PY3VERS:%=install3-python%)
44+
-find debian -name '*.py[co]' | xargs rm -f
45+
-find debian -name __pycache__ | xargs rm -rf
46+
rm -rf debian/python*-mavproxy/usr/lib/python
47+
48+
install-prereq:
49+
dh_testdir
50+
dh_testroot
51+
dh_prep
52+
53+
install3-python%:
54+
mkdir -p debian/python3-mavproxy/usr/bin
55+
mkdir -p debian/python3-mavproxy/$(call py_libdir, $*)
56+
python$* setup.py install \
57+
--root=$(CURDIR)/debian/python3-mavproxy --install-layout=deb
58+
59+
# Build architecture-independent files here.
60+
binary-indep: build install
61+
dh_testdir
62+
dh_testroot
63+
dh_installchangelogs -i
64+
dh_installdocs -i
65+
dh_installexamples -i samples/*
66+
dh_compress -i -X.xml -X.py \
67+
-X.html -X.css -X.asc -X.png -Xapi-objects.txt
68+
dh_fixperms -i
69+
dh_installdeb -i
70+
dh_shlibdeps -i
71+
dh_gencontrol -i
72+
dh_md5sums -i
73+
dh_builddeb -i
74+
75+
# Build architecture-dependent files here.
76+
binary-arch: build install
77+
dh_testdir
78+
dh_testroot
79+
# dh_installchangelogs -a CHANGES.txt
80+
# dh_installdocs -a CREDITS.txt README.rst TODO.txt
81+
dh_installdocs -a README.md
82+
# dh_installexamples -a examples/*
83+
dh_python3 -a
84+
dh_strip -ppython3-mavproxy
85+
dh_compress -a -X.xml -X.py \
86+
-X.html -X.css -X.asc -X.png -Xapi-objects.txt
87+
dh_fixperms -a
88+
dh_installdeb -a
89+
dh_shlibdeps -a
90+
dh_gencontrol -a
91+
dh_md5sums -a
92+
dh_builddeb -a
93+
94+
binary: binary-indep binary-arch
95+
.PHONY: build clean binary-indep binary-arch binary install

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

debian/watch

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version=4
2+
opts="\
3+
compression=gzip, \
4+
dversionmangle=s/\+(?:git)?[0-9]*(?:\+g[0-9a-f]*)//, \
5+
downloadurlmangle=s#/tag/#/download/#;s#(v?@ANY_VERSION@)$#$1/@PACKAGE@-$2.tar.gz#, \
6+
filenamemangle=s#v?@ANY_VERSION@#@PACKAGE@-$1.tar.gz#" \
7+
https://github.com/ArduPilot/@PACKAGE@/tags .*/releases/tag/v?@ANY_VERSION@

0 commit comments

Comments
 (0)