blob: 4be01f0efafe5a8245408e83360b489e17673d9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Mladen Pejakovic <pejakm@gmail.com>
_android_arch=x86-64
pkgname=android-${_android_arch}-libxkbcommon
pkgver=1.7.0
pkgrel=2
arch=('any')
pkgdesc="Keymap handling library for toolkits and window systems (Android ${_android_arch})"
url='https://xkbcommon.org/'
license=('MIT')
groups=(android-libxkbcommon)
depends=("android-${_android_arch}-xkeyboard-config"
"android-${_android_arch}-libxml2")
makedepends=('android-meson'
"android-${_android_arch}-libxcb"
"android-${_android_arch}-xorgproto"
"android-${_android_arch}-xkeyboard-config"
"android-${_android_arch}-libxml2")
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/xkbcommon/libxkbcommon/archive/refs/tags/xkbcommon-${pkgver}.tar.gz")
md5sums=('6e7451406b508833fb6afc423fbdc508')
build() {
cd "${srcdir}/libxkbcommon-xkbcommon-${pkgver}"
source android-env ${_android_arch}
extra_options=
if [ "${ANDROID_MINIMUM_PLATFORM}" -lt 28 ]; then
extra_options="-D enable-x11=false"
fi
android-${_android_arch}-meson build \
-D enable-tools=false \
-D enable-bash-completion=false \
${extra_options}
sed -i 's|-Wl,--no-undefined||g' build/build.ninja
ninja -C build
}
package() {
cd "${srcdir}/libxkbcommon-xkbcommon-${pkgver}"
source android-env ${_android_arch}
DESTDIR="${pkgdir}" ninja -C build install
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a || true
}
|