blob: 6eec03af19b9e6f5f47bd05ea921b67454b846ae (
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
|
# 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-64
pkgname=android-${_android_arch}-glib2
pkgver=2.82.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=('f4054629b8d977f7f5ec96a8f63449c3')
build() {
cd "${srcdir}/glib-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-meson build \
-Dtests=false
ninja -C build
}
package() {
cd "${srcdir}/glib-${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
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"
}
|