c9b6e30e76
As discussed in #1039, I want to split feature/hybris branch into smaller sensible pull requests. This is the first one that simply adds android-headers and libhybris packaging. libhybris allows apps compiled with glibc (musl in our case) to load Android libraries that utilize bionic libc, which is used to load proprietary userspace drivers. The package isn't very useful on its own and requires core (non-UI/Java) Android services to be running in some way - either in Halium-style LXC container or in same root as main OS with modified init (Mer/Sailfish do it this way). Both ways are tested to work in postmarketOS. libhybris also includes some tests, not all of them are known to be representative, but test_vibrator and test_egl_configs are usually good indicators if system is set up correctly.
29 lines
1 KiB
Text
29 lines
1 KiB
Text
pkgname=android-headers-4.4
|
|
_pkgname=android-headers
|
|
pkgver=4.4_git20171022
|
|
_pkgver=4.4
|
|
pkgrel=0
|
|
arch="noarch"
|
|
url="https://github.com/ubports/android-headers"
|
|
license="Apache"
|
|
makedepends=""
|
|
depends=""
|
|
_rev=f636fa26a61b36bef284a7aeba95eb767344b8b4
|
|
source="$pkgname-$_rev.tar.gz::https://github.com/ubports/android-headers/archive/$_rev.tar.gz
|
|
android-headers.pc"
|
|
pkgdesc="Android headers used for building libhybris"
|
|
options="!check"
|
|
|
|
builddir="$srcdir/$_pkgname-$_rev"
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
|
|
mkdir -p "${pkgdir}/usr/include"
|
|
cp -r "$builddir/19" "${pkgdir}/usr/include/android-$_pkgver"
|
|
|
|
install -Dm644 "$srcdir/android-headers.pc" "${pkgdir}/usr/lib/pkgconfig/android-headers-$_pkgver.pc"
|
|
}
|
|
|
|
sha512sums="c146753908ae0dd9aca0138a0a63e8578d65200d6d9b5154b846a0ac3309d9e33f6edddd92cd420e7b7dcaf73630546eb1bd45927cf8b4921f67dec7db7bb55c android-headers-4.4-f636fa26a61b36bef284a7aeba95eb767344b8b4.tar.gz
|
|
331f2670da9ce2690225694196265a55e2f41c35a1a12b71a75de3478b3b266c215be9bd451ab5ea13d4802e9f7d4e1bab8aa006d0df81fc264b2a132a022640 android-headers.pc"
|