2022-01-16 16:13:45 +00:00
|
|
|
# Maintainer: Danct12 <danct12@disroot.org>
|
|
|
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
|
|
|
|
pkgname=waydroid
|
|
|
|
pkgver=1.2.0
|
2022-03-04 15:24:12 +00:00
|
|
|
pkgrel=2
|
2022-01-16 16:13:45 +00:00
|
|
|
pkgdesc="A container-based approach to boot a full Android system on a regular Linux system"
|
|
|
|
arch=('any')
|
|
|
|
url='https://github.com/waydroid'
|
|
|
|
license=('GPL')
|
|
|
|
depends=('lxc' 'python' 'python-gbinder' 'python-gobject' 'nftables' 'dnsmasq')
|
|
|
|
makedepends=('git')
|
|
|
|
optdepends=('waydroid-image: Android image for use with waydroid'
|
|
|
|
'python-pyclip: share clipboard with container')
|
|
|
|
_commit="9a87b10bbfd9cc04c8259207233fadad9acbf5d3" # tags/1.2.0
|
|
|
|
source=("waydroid::git+https://github.com/waydroid/waydroid.git#commit=$_commit"
|
2022-03-04 15:24:12 +00:00
|
|
|
gbinder.conf
|
|
|
|
0001-fix-bad-eol-of-proc-dt-values.patch)
|
2022-01-16 16:13:45 +00:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$pkgname"
|
|
|
|
git describe --tags | sed 's/^v//;s/-/+/g'
|
|
|
|
}
|
|
|
|
|
2022-03-04 15:24:12 +00:00
|
|
|
prepare() {
|
|
|
|
cd waydroid
|
|
|
|
patch -p1 < ../0001-fix-bad-eol-of-proc-dt-values.patch
|
|
|
|
}
|
|
|
|
|
2022-01-16 16:13:45 +00:00
|
|
|
package() {
|
|
|
|
cd waydroid
|
|
|
|
install -dm755 "$pkgdir/usr/lib/waydroid"
|
|
|
|
install -dm755 "$pkgdir/usr/share/applications"
|
|
|
|
install -dm755 "$pkgdir/usr/bin"
|
|
|
|
cp -r tools data "$pkgdir/usr/lib/waydroid/"
|
|
|
|
mv "$pkgdir/usr/lib/waydroid/data/Waydroid.desktop" "$pkgdir/usr/share/applications"
|
|
|
|
cp waydroid.py "$pkgdir/usr/lib/waydroid/"
|
|
|
|
ln -s /usr/lib/waydroid/waydroid.py "$pkgdir/usr/bin/waydroid"
|
|
|
|
|
|
|
|
install -Dm644 -t "$pkgdir/etc" "$srcdir/gbinder.conf"
|
|
|
|
install -Dm644 -t "$pkgdir/etc/gbinder.d" gbinder/anbox.conf
|
|
|
|
install -Dm644 -t "$pkgdir/usr/lib/systemd/system" debian/waydroid-container.service
|
|
|
|
}
|
|
|
|
|
|
|
|
sha256sums=('SKIP'
|
2022-03-04 15:24:12 +00:00
|
|
|
'87a21d401281735ea026d715ea79b36e01f9af084198de2761b32d5b58a343dd'
|
|
|
|
'a0f2f5fe6c3e5af6afee144ad6deec067679d39a9544dfaa2d10e8dac7013bf8')
|