Github messages for voidlinux
 help / color / mirror / Atom feed
From: Johnnynator <Johnnynator@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: waydroid
Date: Sun, 30 Jan 2022 17:21:26 +0100	[thread overview]
Message-ID: <20220130162126.aedkBeafWoerzDKC2Z4a5o6wpQKvIdzcghlAI-V1tQE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33135@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1964 bytes --]

There is an updated pull request by Johnnynator against master on the void-packages repository

https://github.com/Johnnynator/void-packages waydroid
https://github.com/void-linux/void-packages/pull/33135

New package: waydroid
- New package: libglibutil-1.0.55
- New package: libgbinder-1.1.11
- New package: waydroid-0.0.0.13092021
- New package: waydroid-image-17.1.20210913
- New package: gbinder-python-0.0.0.20210812

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

Quick notes for testing:

- install waydroid
- `sudo waydroid init -f`
- `sudo waydroid container start`
- `waydroid session start`
- `waydroid show-full-ui`

A patch file from https://github.com/void-linux/void-packages/pull/33135.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-waydroid-33135.patch --]
[-- Type: text/x-diff, Size: 9327 bytes --]

From 33a44d922a4136409b2ed08752acfd967dd2710d Mon Sep 17 00:00:00 2001
From: John Zimmermann <me@johnnynator.dev>
Date: Thu, 23 Sep 2021 11:35:07 +0200
Subject: [PATCH 1/5] New package: libglibutil-1.0.55

---
 common/shlibs                |  1 +
 srcpkgs/libglibutil-devel    |  1 +
 srcpkgs/libglibutil/template | 27 +++++++++++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 120000 srcpkgs/libglibutil-devel
 create mode 100644 srcpkgs/libglibutil/template

diff --git a/common/shlibs b/common/shlibs
index edcf9daee61c..86ea75527a3d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -113,6 +113,7 @@ libturbojpeg.so.0 libjpeg-turbo-1.3.0_2
 libpng16.so.16 libpng-1.6.2_1
 libXrender.so.1 libXrender-0.9.4_1
 libXrandr.so.2 libXrandr-1.3.0_1
+libglibutil.so.1 libglibutil-1.0.35_1
 libGLU.so.1 glu-9.0.0_1
 libGL.so.1 libGL-7.11_1
 libEGL.so.1 libEGL-7.11_1
diff --git a/srcpkgs/libglibutil-devel b/srcpkgs/libglibutil-devel
new file mode 120000
index 000000000000..f4da4cebe81f
--- /dev/null
+++ b/srcpkgs/libglibutil-devel
@@ -0,0 +1 @@
+libglibutil
\ No newline at end of file
diff --git a/srcpkgs/libglibutil/template b/srcpkgs/libglibutil/template
new file mode 100644
index 000000000000..c044b4545bd3
--- /dev/null
+++ b/srcpkgs/libglibutil/template
@@ -0,0 +1,27 @@
+# Template file for 'libglibutil'
+pkgname=libglibutil
+version=1.0.55
+revision=1
+build_style=gnu-makefile
+make_use_env=1
+make_build_args="KEEP_SYMBOLS=1"
+make_build_target="release pkgconfig"
+make_install_target="install-dev"
+hostmakedepends="pkg-config"
+makedepends="glib-devel"
+short_desc="Library of glib utilities"
+maintainer="John <me@johnnynator.dev>"
+license="BSD-3-Clause"
+homepage="glib-devel"
+distfiles="https://git.sailfishos.org/mer-core/libglibutil/-/archive/$version/libglibutil-$version.tar.gz"
+checksum=56b5319f3eac04c19d0a7d361b1a6810817ad863b2e758de61a8068cad92141a
+
+libglibutil-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

From 4468c1c1df945ddb1e1ecafd59ddefb20962d75c Mon Sep 17 00:00:00 2001
From: John Zimmermann <me@johnnynator.dev>
Date: Sat, 25 Sep 2021 12:37:37 +0200
Subject: [PATCH 2/5] New package: libgbinder-1.1.11

---
 common/shlibs               |  1 +
 srcpkgs/libgbinder-devel    |  1 +
 srcpkgs/libgbinder/template | 27 +++++++++++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 120000 srcpkgs/libgbinder-devel
 create mode 100644 srcpkgs/libgbinder/template

diff --git a/common/shlibs b/common/shlibs
index 86ea75527a3d..3a0f6a2e692d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -114,6 +114,7 @@ libpng16.so.16 libpng-1.6.2_1
 libXrender.so.1 libXrender-0.9.4_1
 libXrandr.so.2 libXrandr-1.3.0_1
 libglibutil.so.1 libglibutil-1.0.35_1
+libgbinder.so.1 libgbinder-1.1.11_1
 libGLU.so.1 glu-9.0.0_1
 libGL.so.1 libGL-7.11_1
 libEGL.so.1 libEGL-7.11_1
diff --git a/srcpkgs/libgbinder-devel b/srcpkgs/libgbinder-devel
new file mode 120000
index 000000000000..f31e2e6dbb52
--- /dev/null
+++ b/srcpkgs/libgbinder-devel
@@ -0,0 +1 @@
+libgbinder
\ No newline at end of file
diff --git a/srcpkgs/libgbinder/template b/srcpkgs/libgbinder/template
new file mode 100644
index 000000000000..961dfcabb1c6
--- /dev/null
+++ b/srcpkgs/libgbinder/template
@@ -0,0 +1,27 @@
+# Template file for 'libgbinder'
+pkgname=libgbinder
+version=1.1.11
+revision=1
+build_style=gnu-makefile
+make_use_env=1
+make_build_args="KEEP_SYMBOLS=1"
+make_build_target="release pkgconfig"
+make_install_target="install-dev"
+hostmakedepends="pkg-config"
+makedepends="glib-devel libglibutil-devel"
+short_desc="GLib-style interface to binder"
+maintainer="John <me@johnnynator.dev>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/mer-hybris/libgbinder"
+distfiles="https://github.com/mer-hybris/libgbinder/archive/${version}/libgbinder-${version}.tar.gz"
+checksum=cc7c08d09667c1b54f6e04d7e358aabdb86b40fbb86cb3f514d425474acf7f5a
+
+libgbinder-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision} glib-devel libglibutil-devel"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

From 6704af2e4350eb271227b55b99592388756df844 Mon Sep 17 00:00:00 2001
From: John Zimmermann <me@johnnynator.dev>
Date: Sat, 25 Sep 2021 12:37:54 +0200
Subject: [PATCH 3/5] New package: waydroid-1.1.0

---
 srcpkgs/waydroid/files/gbinder.conf           |  2 ++
 srcpkgs/waydroid/files/waydroid-container/run |  3 ++
 .../waydroid/files/waydroid-session.desktop   |  8 ++++++
 srcpkgs/waydroid/template                     | 28 +++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 srcpkgs/waydroid/files/gbinder.conf
 create mode 100755 srcpkgs/waydroid/files/waydroid-container/run
 create mode 100644 srcpkgs/waydroid/files/waydroid-session.desktop
 create mode 100644 srcpkgs/waydroid/template

diff --git a/srcpkgs/waydroid/files/gbinder.conf b/srcpkgs/waydroid/files/gbinder.conf
new file mode 100644
index 000000000000..a95692feb37f
--- /dev/null
+++ b/srcpkgs/waydroid/files/gbinder.conf
@@ -0,0 +1,2 @@
+[General]
+ApiLevel = 29
diff --git a/srcpkgs/waydroid/files/waydroid-container/run b/srcpkgs/waydroid/files/waydroid-container/run
new file mode 100755
index 000000000000..0bcc4f53a6f1
--- /dev/null
+++ b/srcpkgs/waydroid/files/waydroid-container/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/waydroid container start
diff --git a/srcpkgs/waydroid/files/waydroid-session.desktop b/srcpkgs/waydroid/files/waydroid-session.desktop
new file mode 100644
index 000000000000..534bd59b2482
--- /dev/null
+++ b/srcpkgs/waydroid/files/waydroid-session.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Version=1.0
+Name=Waydroid Session
+Comment=Starts the Waydroid session
+Exec=/usr/bin/waydroid session start
+TryExec=/usr/bin/waydroid
+Terminal=false
+Type=Application
diff --git a/srcpkgs/waydroid/template b/srcpkgs/waydroid/template
new file mode 100644
index 000000000000..252b802ff525
--- /dev/null
+++ b/srcpkgs/waydroid/template
@@ -0,0 +1,28 @@
+# Template file for 'waydroid'
+pkgname=waydroid
+version=1.2.0
+revision=1
+depends="gbinder-python lxc python3-gobject python3-pyclip"
+short_desc="Container-based approach to boot a full Android system"
+maintainer="John <me@johnnynator.dev>"
+license="GPL-3.0-or-later"
+homepage="https://waydro.id"
+distfiles="https://github.com/waydroid/waydroid/archive/${version}.tar.gz"
+checksum=0526c84562dfeb688961d9d7e697d557869bf08442b640554d1e07788df098c4
+pycompile_dirs="/usr/lib/waydroid"
+python_version=3
+
+do_install() {
+	vmkdir usr/lib/waydroid
+	vmkdir usr/bin
+
+	vcopy tools usr/lib/waydroid
+	vcopy data usr/lib/waydroid
+	vinstall waydroid.py 755 usr/lib/waydroid
+	ln -sr $DESTDIR/usr/lib/waydroid/waydroid.py ${DESTDIR}/usr/bin/waydroid
+
+	vinstall $FILESDIR/gbinder.conf 644 etc
+	vinstall $FILESDIR/waydroid-session.desktop 644 etc/xdg/autostart
+
+	vsv waydroid-container
+}

From ed2022e55658e6f4bb078830154582dcf0100653 Mon Sep 17 00:00:00 2001
From: John Zimmermann <me@johnnynator.dev>
Date: Sat, 25 Sep 2021 12:38:55 +0200
Subject: [PATCH 4/5] New package: gbinder-python-0.0.0.20210812

---
 srcpkgs/gbinder-python/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/gbinder-python/template

diff --git a/srcpkgs/gbinder-python/template b/srcpkgs/gbinder-python/template
new file mode 100644
index 000000000000..df029da2bc55
--- /dev/null
+++ b/srcpkgs/gbinder-python/template
@@ -0,0 +1,16 @@
+# Template file for 'gbinder-python'
+pkgname=gbinder-python
+version=0.0.0.20210812
+revision=1
+_commit=2e1e05c0a0240d6c06e9bbe9b22dcc35c2e0211c
+wrksrc="gbinder-python-$_commit"
+build_style=python3-module
+make_build_args="--cython"
+hostmakedepends="python3-setuptools python3-Cython pkg-config"
+makedepends="libgbinder-devel python3-devel"
+short_desc="Python bindings for libgbinder"
+maintainer="John <me@johnnynator.dev>"
+license="GPL-3.0-only"
+homepage="https://github.com/erfanoabdi/gbinder-python"
+distfiles="https://github.com/erfanoabdi/gbinder-python/archive/$_commit.tar.gz"
+checksum=7717d3ec530bf53ef8eb6b49320cd46341f00f517b0cbc34c922c1f83cba5bd9

From 88055f4c01eb49814a7dfc7f74ffb5c70028a9ab Mon Sep 17 00:00:00 2001
From: John Zimmermann <me@johnnynator.dev>
Date: Tue, 19 Oct 2021 22:59:06 +0200
Subject: [PATCH 5/5] New package: python3-pyclip-0.5.3

---
 srcpkgs/python3-pyclip/template | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 srcpkgs/python3-pyclip/template

diff --git a/srcpkgs/python3-pyclip/template b/srcpkgs/python3-pyclip/template
new file mode 100644
index 000000000000..996b9773e8a1
--- /dev/null
+++ b/srcpkgs/python3-pyclip/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-pyclip'
+pkgname=python3-pyclip
+version=0.5.3
+revision=1
+wrksrc="pyclip-$version"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Cross-platform Clipboard module for Python"
+maintainer="John <me@johnnynator.dev>"
+license="Apache-2.0"
+homepage="https://github.com/spyoungtech/pyclip"
+distfiles="${PYPI_SITE}/p/pyclip/pyclip-${version}.tar.gz"
+checksum=8c6588179c3f6e6e642650346c57fb0b846ce291262402580e7f3548eca774f9

  parent reply	other threads:[~2022-01-30 16:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-26 15:25 [PR PATCH] " Johnnynator
2021-09-26 15:34 ` [PR PATCH] [Updated] " Johnnynator
2021-09-26 16:21 ` Johnnynator
2021-09-26 16:55 ` Anachron
2021-09-26 17:36 ` Johnnynator
2021-09-28 13:09 ` [PR PATCH] [Updated] " Johnnynator
2021-09-28 17:35 ` q66
2022-01-23  1:15 ` notthewave
2022-01-23  1:16 ` [PR REVIEW] " notthewave
2022-01-30 13:12 ` Johnnynator
2022-01-30 13:12 ` Johnnynator
2022-01-30 16:21 ` Johnnynator [this message]
2022-03-07 18:07 ` Relected
2022-03-07 21:11 ` Johnnynator
2022-06-06  2:15 ` github-actions
2022-06-19  8:19 ` [PR PATCH] [Closed]: " Johnnynator

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220130162126.aedkBeafWoerzDKC2Z4a5o6wpQKvIdzcghlAI-V1tQE@z \
    --to=johnnynator@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).