]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
Add debian packaging
authorErfan Abdi <erfangplus@gmail.com>
Thu, 2 Sep 2021 17:41:44 +0000 (22:11 +0430)
committerErfan Abdi <erfangplus@gmail.com>
Thu, 2 Sep 2021 17:56:39 +0000 (22:26 +0430)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/waydroid.dirs [new file with mode: 0644]
debian/waydroid.install [new file with mode: 0644]
debian/waydroid.links [new file with mode: 0644]
debian/waydroid.postinst [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..3cf38d3
--- /dev/null
@@ -0,0 +1,5 @@
+waydroid (1.0.0) master; urgency=medium
+
+  * Initial release.
+
+ -- Erfan Abdi <erfangplus@gmail.com>  Thu, 02 Sep 2021 22:19:03 +0430
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b1bd38b
--- /dev/null
@@ -0,0 +1 @@
+13
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..230a34a
--- /dev/null
@@ -0,0 +1,20 @@
+Source: waydroid
+Maintainer: Erfan Abdi <erfangplus@gmail.com>
+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 (file)
index 0000000..4bdebfc
--- /dev/null
@@ -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 <erfangplus@gmail.com>
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2021 Erfan Abdi <erfangplus@gmail.com>
+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 <https://www.gnu.org/licenses/>.
+
+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 <organization> 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 <COPYRIGHT HOLDER> 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 (executable)
index 0000000..016f8b3
--- /dev/null
@@ -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 (file)
index 0000000..89ae9db
--- /dev/null
@@ -0,0 +1 @@
+3.0 (native)
diff --git a/debian/waydroid.dirs b/debian/waydroid.dirs
new file mode 100644 (file)
index 0000000..ba492e2
--- /dev/null
@@ -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 (file)
index 0000000..c15d09e
--- /dev/null
@@ -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 (file)
index 0000000..118e694
--- /dev/null
@@ -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 (file)
index 0000000..10f9eea
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+
+configure() {
+       # Update configs
+    waydroid upgrade -o
+}
+
+case "$1" in
+       "configure")
+               configure
+               ;;
+esac
+
+#DEBHELPER#