blob: a175cfb9526bd7e94409f3bc901531752f90406f (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: drakkan <nicola.murino at gmail dot com>
# Contributor: Filip Brcic <brcha@gna.org>
# Contributor: ant32 <antreimer@gmail.com>
# Contributor: Renato Silva <br.renatosilva@gmail.com>
# Contributor: Martchus <martchus@gmx.net>
_android_arch=x86
pkgname=android-${_android_arch}-glib2
pkgver=2.80.2
pkgrel=1
arch=('any')
pkgdesc="Low level core library (Android ${_android_arch})"
url="https://wiki.gnome.org/Projects/GLib"
license=("LGPL2.1")
groups=('android-glib2')
depends=("android-${_android_arch}-libffi"
"android-${_android_arch}-pcre2"
"android-${_android_arch}-gettext"
"android-${_android_arch}-zlib")
makedepends=('android-meson')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://download.gnome.org/sources/glib/${pkgver%.*}/glib-${pkgver}.tar.xz")
md5sums=('399162c4e5f46e3f331a1f9c7478e4c5')
build() {
cd "${srcdir}/glib-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-meson build-static \
--default-library static \
-Dtests=false
ninja -C build-static
android-${_android_arch}-meson build-shared \
--default-library shared \
-Dtests=false \
-Dman-pages=false
ninja -C build-shared
}
package() {
cd "${srcdir}/glib-${pkgver}"
source android-env ${_android_arch}
DESTDIR="${pkgdir}" ninja -C build-static install
DESTDIR="${pkgdir}" ninja -C build-shared install
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a || true
files=(gapplication
gdbus
gi-compile-repository
gi-decompile-typelib
gi-inspect-typelib
gio
gio-querymodules
glib-compile-resources
glib-compile-schemas
gobject-query
gresource
gsettings
gtester)
for f in "${files[@]}"; do
rm -f "${pkgdir}/${ANDROID_PREFIX_BIN}/$f"
done
rm -f "${pkgdir}/${ANDROID_PREFIX_INCLUDE}/libintl.h"
rm -f "${pkgdir}/${ANDROID_PREFIX_LIB}/libintl.a"
rm -f "${pkgdir}/${ANDROID_PREFIX_LIB}/libintl.so"
rm -f "${pkgdir}/${ANDROID_PREFIX_LIB}/gio-launch-desktop"
}
|