Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add Debian package files #1336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mavproxy (1.8.70) UNRELEASED; urgency=medium

* Initial release.

-- Andrii Beregovenko <[email protected]> Sat, 09 Mar 2024 15:40:20 +0100
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
34 changes: 34 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Source: mavproxy
Section: python
Priority: optional
Maintainer: Andrii Beregovenko <[email protected]>
Build-Depends: debhelper (>= 10),
dh-python,
python3-all-dev (>= 3.3.3),
libxml2-dev, libxslt1-dev, zlib1g-dev,
python3-setuptools (>= 0.6.29),
python3-numpy,
python3-pytest,
X-Python-Version: all
Standards-Version: 4.5.1
Homepage: https://github.com/ArduPilot/MAVProxy

Package: python3-mavproxy
Architecture: any
Multi-Arch: same
Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
Provides: ${python3:Provides}
Description: MAVProxy is oriented towards command line operation
A MAVLink protocol proxy and ground station. MAVProxy is oriented
towards command line operation, and is suitable for embedding in
small autonomous vehicles or for using on ground control stations.
It also features a number of graphical tools such as a slipmap for
satellite mapping view of the vehicles location, and status console
and several useful vehicle control modules. MAVProxy is extensible
via a modules system - see the modules subdirectory for some example
modules. MAVProxy was developed by CanberraUAV for use in the 2012
Outback Challenge, and includes a module for the CanberraUAV search
and rescue system.
.
See https://ardupilot.org/mavproxy/index.html for more information
on how to use MAVProxy.
674 changes: 674 additions & 0 deletions debian/copyright

Large diffs are not rendered by default.

Empty file added debian/patches/series
Empty file.
95 changes: 95 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PY3VERS := $(shell py3versions -vs)
PY3VER := $(shell py3versions -vd)

include /usr/share/dpkg/pkg-info.mk

include /usr/share/python3/python.mk

# Some locales trigger reproducibility issues in html documentation
export LC_ALL=C.UTF-8
export LANG=C.UTF-8

prebuild: prebuild-stamp
prebuild-stamp:
touch $@

build-arch: build
build-indep: build
build: build3-stamp

build3-stamp: $(PY3VERS:%=build3-python%) doc-build3-python$(PY3VER)
touch $@
build3-python%: prebuild
python$* setup.py build
touch $@
doc-build3-python$(PY3VER): build3-python$(PY3VER)
touch $@

clean:
dh_testdir
dh_testroot
rm -f build*-stamp build*-python* dbg-build*-python* prebuild-stamp
rm -rf build dist __pycache__
-find -name '*.py[co]' | xargs rm -f
rm -rf [23].[0-9]
dh_clean

install: build install-prereq $(PY3VERS:%=install3-python%)
-find debian -name '*.py[co]' | xargs rm -f
-find debian -name __pycache__ | xargs rm -rf
rm -rf debian/python*-mavproxy/usr/lib/python

install-prereq:
dh_testdir
dh_testroot
dh_prep

install3-python%:
mkdir -p debian/python3-mavproxy/usr/bin
mkdir -p debian/python3-mavproxy/$(call py_libdir, $*)
python$* setup.py install \
--root=$(CURDIR)/debian/python3-mavproxy --install-layout=deb

# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs -i
dh_installdocs -i
dh_installexamples -i samples/*
dh_compress -i -X.xml -X.py \
-X.html -X.css -X.asc -X.png -Xapi-objects.txt
dh_fixperms -i
dh_installdeb -i
dh_shlibdeps -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i

# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installchangelogs -a CHANGES.txt
# dh_installdocs -a CREDITS.txt README.rst TODO.txt
dh_installdocs -a README.md
# dh_installexamples -a examples/*
dh_python3 -a
dh_strip -ppython3-mavproxy
dh_compress -a -X.xml -X.py \
-X.html -X.css -X.asc -X.png -Xapi-objects.txt
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
7 changes: 7 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version=4
opts="\
compression=gzip, \
dversionmangle=s/\+(?:git)?[0-9]*(?:\+g[0-9a-f]*)//, \
downloadurlmangle=s#/tag/#/download/#;s#(v?@ANY_VERSION@)$#$1/@PACKAGE@-$2.tar.gz#, \
filenamemangle=s#v?@ANY_VERSION@#@PACKAGE@-$1.tar.gz#" \
https://github.com/ArduPilot/@PACKAGE@/tags .*/releases/tag/v?@ANY_VERSION@