From: Erfan Abdi Date: Thu, 2 Sep 2021 17:41:44 +0000 (+0430) Subject: Add debian packaging X-Git-Tag: 1.1.0~35 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/3d8ae4642b5c3e788c15497daa7a73f9e28e4c35 Add debian packaging --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3cf38d3 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +waydroid (1.0.0) master; urgency=medium + + * Initial release. + + -- Erfan Abdi Thu, 02 Sep 2021 22:19:03 +0430 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b1bd38b --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +13 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..230a34a --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: waydroid +Maintainer: Erfan Abdi +Section: misc +Priority: optional +Build-Depends: debhelper (>= 10), + dh-python, + python3 +Standards-Version: 4.5.0.3 +Vcs-Browser: https://github.com/waydroid/waydroid +Vcs-Git: https://github.com/waydroid/waydroid.git + +Package: waydroid +Architecture: all +Depends: ${misc:Depends}, + ${python3:Depends}, + python3-gbinder, + python3-gi +Description: Android™ application support + waydroid allows running a separate Android™ environment + confined to a LXC container. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4bdebfc --- /dev/null +++ b/debian/copyright @@ -0,0 +1,48 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: waydroid +Source: https://github.com/waydroid/waydroid + +Files: * +Copyright: 2021 Erfan Abdi +License: GPL-3+ + +Files: debian/* +Copyright: 2021 Erfan Abdi +License: BSD-3-clause + +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..016f8b3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with=python3 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/waydroid.dirs b/debian/waydroid.dirs new file mode 100644 index 0000000..ba492e2 --- /dev/null +++ b/debian/waydroid.dirs @@ -0,0 +1,3 @@ +/usr/bin +/usr/lib/waydroid +/etc/gbinder.d diff --git a/debian/waydroid.install b/debian/waydroid.install new file mode 100644 index 0000000..c15d09e --- /dev/null +++ b/debian/waydroid.install @@ -0,0 +1,4 @@ +waydroid.py /usr/lib/waydroid +tools /usr/lib/waydroid +data /usr/lib/waydroid +gbinder/anbox.conf /etc/gbinder.d diff --git a/debian/waydroid.links b/debian/waydroid.links new file mode 100644 index 0000000..118e694 --- /dev/null +++ b/debian/waydroid.links @@ -0,0 +1 @@ +/usr/lib/waydroid/waydroid.py /usr/bin/waydroid diff --git a/debian/waydroid.postinst b/debian/waydroid.postinst new file mode 100644 index 0000000..10f9eea --- /dev/null +++ b/debian/waydroid.postinst @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +configure() { + # Update configs + waydroid upgrade -o +} + +case "$1" in + "configure") + configure + ;; +esac + +#DEBHELPER#