mirror of
https://github.com/rizitis/waydroid-slackware.git
synced 2024-11-16 07:48:07 +01:00
Add files via upload
This commit is contained in:
commit
09597f377a
8 changed files with 280 additions and 0 deletions
67
README.Slackware
Normal file
67
README.Slackware
Normal file
|
@ -0,0 +1,67 @@
|
|||
Waydroid works ONLY in a Wayland
|
||||
and you need to run a kernel which comes with the binder modules.
|
||||
Slackware stock kernels dont come with that.
|
||||
There are several ways to fix this. What I preffer is the hard way, to build a Slackware zen kernel.
|
||||
Using stock slackware kernel config plus:
|
||||
CONFIG_ANDROID=y
|
||||
CONFIG_ANDROID_BINDER_IPC=y
|
||||
CONFIG_ANDROID_BINDERFS=n
|
||||
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
|
||||
|
||||
One of the reasons is that I found it the most stable and secure way...
|
||||
NOTE zen kernels its BETTER to build them in $USER/HOME not to root and better not to /usr/src
|
||||
so make as user $HOME/ZEN and build there.
|
||||
============
|
||||
|
||||
Next step install python3-gbinder from SBo/ponce
|
||||
|
||||
I use slpkg for that.
|
||||
# slpkg -i python3-gbinder
|
||||
(this command will build and install python3-gbinder deps too)
|
||||
============
|
||||
|
||||
Then run waydroid.Slackbuild to build and install package.
|
||||
============
|
||||
|
||||
After installation finish run
|
||||
|
||||
# waydroid init
|
||||
or init with GApps support
|
||||
# waydroid init -s GAPPS
|
||||
|
||||
^^ this will automatically download the latest Android image.
|
||||
============
|
||||
|
||||
To start waydroid session:
|
||||
# /usr/bin/waydroid -w container start &
|
||||
(give it some time...)
|
||||
===========
|
||||
|
||||
Launch GUI:
|
||||
|
||||
$ waydroid show-full-ui
|
||||
|
||||
Launch shell:
|
||||
|
||||
# waydroid shell (bug)
|
||||
|
||||
Install an application:
|
||||
|
||||
$ waydroid app install $path_to_apk
|
||||
|
||||
Run an application:
|
||||
|
||||
$ waydroid app launch $package_name # Can be retrieved with `waydroid app list`
|
||||
===========
|
||||
|
||||
Tip: if python3-gbinder fail to build and you are in slackware-current
|
||||
Download the python3.11 version from here https://repo.waydro.id/dists/mantic/python3-gbinder_1.1.2_amd64.deb
|
||||
extract files...and place "gbinder.cpython-311-x86_64-linux-gnu.so" and "gbinder_python-1.1.2.egg-info/"
|
||||
to user ~/.local/lib/python3.11/site-packages/
|
||||
|
||||
Then command:
|
||||
python3.11
|
||||
|
||||
and:
|
||||
import gbinder
|
||||
|
15
README.md
Normal file
15
README.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Wayndroid Slackware
|
||||
|
||||
|
||||
![wayndroid-start.png](./wayndroid-start.png)
|
||||
|
||||
|
||||
![wayndroid-full-gui](./wayndroid-full-gui.png)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Build-Install
|
||||
README.Slackware
|
65
sample.md
Normal file
65
sample.md
Normal file
|
@ -0,0 +1,65 @@
|
|||
# Header 1
|
||||
|
||||
This is a quote:
|
||||
|
||||
> We\'re living the future so
|
||||
> the present is our past.
|
||||
|
||||
We can style words: *Italic*, **Bold** and `code span`.
|
||||
|
||||
## Header 2
|
||||
|
||||
List sample:
|
||||
|
||||
* Unordered list can use asterisks
|
||||
- Or minuses
|
||||
+ Or pluses
|
||||
|
||||
1. Ordered list item 1.
|
||||
1. Ordered list item 2.
|
||||
|
||||
### Header 3
|
||||
|
||||
Table sample:
|
||||
|
||||
| Tables | Are | Cool |
|
||||
| ------------- |:-------------:| -----:|
|
||||
| col 3 is | right-aligned | $1600 |
|
||||
| col 2 is | centered | $12 |
|
||||
| zebra stripes | are neat | $1 |
|
||||
|
||||
#### Header 4
|
||||
|
||||
I get 10 times more traffic from [Google][1] than from [Yahoo][2] or [MSN][3].
|
||||
|
||||
[1]: http://google.com/ 'Google'
|
||||
[2]: http://search.yahoo.com/ "Yahoo Search"
|
||||
[3]: http://search.msn.com/ (MSN Search)
|
||||
|
||||
##### Header 5
|
||||
|
||||
* [markdown-it](https://github.com/markdown-it/markdown-it) for Markdown parsing
|
||||
* [CodeMirror](http://codemirror.net/) for the awesome syntax-highlighted editor
|
||||
* [highlight.js](http://softwaremaniacs.org/soft/highlight/en/) for syntax _highlighting_ in output code blocks
|
||||
* [js-deflate](https://github.com/dankogai/js-deflate) for gzipping of data to make it fit in URLs
|
||||
|
||||
This is [an example] [id] reference-style link.
|
||||
|
||||
[id]: http://example.com/ 'Optional Title Here'
|
||||
|
||||
This is an image:
|
||||
![A beautiful flower](../dita/flowers/images/Chrysanthemums.jpg "Chrysanthemum")
|
||||
|
||||
###### Header 6
|
||||
|
||||
XML sample:
|
||||
<table>
|
||||
<tr>
|
||||
<td>Foo1</td>
|
||||
<td>Foo2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Foo1</td>
|
||||
<td>Foo2</td>
|
||||
</tr>
|
||||
</table>
|
19
slack-desc
Normal file
19
slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
Waydroid: Waydroid (a container-based approach to boot a full Android system)
|
||||
Waydroid:
|
||||
Waydroid: Waydroid uses Linux namespaces (user, pid, uts, net, mount, ipc)
|
||||
Waydroid: to run a full Android system in a container
|
||||
Waydroid: and provide Android applications on any GNU/Linux-based platform.
|
||||
Waydroid: The Android system inside the container has direct access to
|
||||
Waydroid: any needed hardware.The Android runtime environment
|
||||
Waydroid: ships with a minimal customized Android system image based on
|
||||
Waydroid: LineageOS. The image is currently based on Android 11.
|
||||
Waydroid: https://docs.waydro.id/debugging/troubleshooting
|
||||
Waydroid: https://github.com/waydroid/waydroid
|
1
slack-required
Normal file
1
slack-required
Normal file
|
@ -0,0 +1 @@
|
|||
python3-gbinder
|
113
waydroid.SlackBuild
Normal file
113
waydroid.SlackBuild
Normal file
|
@ -0,0 +1,113 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Slackware build script for waydroid
|
||||
|
||||
# rizitis
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "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 THE AUTHOR 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.
|
||||
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=waydroid
|
||||
VERSION=${VERSION:-1.4.2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_rtz}
|
||||
PKGTYPE=${PKGTYPE:-txz}
|
||||
LINK=https://github.com/waydroid/waydroid/archive/refs/tags/
|
||||
GVERS=$VERSION.tar.gz
|
||||
|
||||
wget -c "$LINK""$GVERS"
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
TMP=${TMP:-/tmp/rtz}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
JOBS=-j$(getconf _NPROCESSORS_ONLN)
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
make "$JOBS"
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
|
||||
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a CODE_OF_CONDUCT.md LICENSE* README* \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/slack-required > $PKG/install/slack-required
|
||||
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l n -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
BIN
wayndroid-full-gui.png
Normal file
BIN
wayndroid-full-gui.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 411 KiB |
BIN
wayndroid-start.png
Normal file
BIN
wayndroid-start.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 123 KiB |
Loading…
Reference in a new issue