From 3e883537f103e57159e9711ddf2f7cd38f42b827 Mon Sep 17 00:00:00 2001 From: Alexey Min Date: Sun, 26 May 2019 02:46:21 +0300 Subject: [PATCH] hybris-base: new package (!351) Meta package to install all needed packages to get libhybris hardware adaptation working. Has 2 subpackages (caf/generic), that device packages can depend on. Arches are limited, because libhybris cannot be built for x86_64. [ci:skip-build]: already built successfully in CI --- hybris/hybris-base/APKBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 hybris/hybris-base/APKBUILD diff --git a/hybris/hybris-base/APKBUILD b/hybris/hybris-base/APKBUILD new file mode 100644 index 000000000..e1f377943 --- /dev/null +++ b/hybris/hybris-base/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Alexey Min +pkgname=hybris-base +pkgver=1.0 +pkgrel=0 +pkgdesc="Meta package to use libhybris adaptation" +url="https://postmarketos.org" +license="GPL-3.0-or-later" +options="!check" +# libhybris cannot be built for arch x86_64 +arch="x86 armhf armv7 aarch64" +depends="lxc-android libhybris libhybris-7.1 libhybris-egl libhybris-gles libhybris-libwayland-egl wayland-libs-client wayland-libs-server" +subpackages="$pkgname-x11-generic:x11_generic $pkgname-x11-caf:x11_caf" + +package() { + mkdir -p "$pkgdir" +} + +x11_generic() { + depends="xf86-video-hwcomposer xf86-video-hwcomposer-7.1" + mkdir -p "$subpkgdir" +} + +x11_caf() { + depends="xf86-video-hwcomposer xf86-video-hwcomposer-7.1-caf" + mkdir -p "$subpkgdir" +}