blob: 44404283bbf22abe749c9739396a700c02dd40a8 (
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
53
54
55
56
57
58
59
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
_android_arch=armv7a-eabi
pkgname=android-${_android_arch}-libx11
pkgver=1.8.10
pkgrel=1
arch=('any')
pkgdesc="X11 client-side library (Android ${_android_arch})"
url="https://xorg.freedesktop.org/"
license=('custom')
groups=('android-libx11')
# keep xorgproto runtime dependency
# https://lists.archlinux.org/pipermail/arch-dev-public/2019-December/029767.html
depends=("android-${_android_arch}-libxcb"
"android-${_android_arch}-xorgproto")
makedepends=('android-configure'
"android-${_android_arch}-xorg-util-macros"
"android-${_android_arch}-xtrans")
options=(!strip !buildflags staticlibs !emptydirs)
source=("${url}/releases/individual/lib/libX11-${pkgver}.tar.xz"{,.sig}
'0001-Fix-missing-symbols.patch')
md5sums=('5b8fa54e0ef94136b56f887a5e6cf6c9'
'SKIP'
'7aa12ed8ce6ef220c1e0b8c2b2982d27')
validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alanc@freedesktop.org>
prepare() {
cd "$srcdir/libX11-${pkgver}"
patch -Np1 -i ../0001-Fix-missing-symbols.patch
sed -i 's|-lpthread| |g' configure
}
build() {
cd "$srcdir/libX11-${pkgver}"
source android-env ${_android_arch}
export CFLAGS="${CFLAGS} -DNO_DEC_I18N_FIX"
export CXXFLAGS="${CXXFLAGS} -DNO_DEC_I18N_FIX"
android-${_android_arch}-configure \
--disable-xf86bigfont \
--disable-malloc0returnsnull
make $MAKEFLAGS
}
package() {
cd "$srcdir/libX11-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}/doc"
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}/man"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|