blob: a44aad1a301732e1366735c6a1a6c8f063762fe7 (
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
|
# Maintainer: nightuser <nightuser.android@gmail.com>
pkgname=glib2-static
pkgver=2.72.3
pkgrel=1
pkgdesc="Low level core library: Static library"
url="https://wiki.gnome.org/Projects/GLib"
license=(LGPL2.1)
arch=(x86_64 aarch64)
depends=()
makedepends=(gettext zlib libffi shared-mime-info python libelf git util-linux meson dbus)
checkdepends=(desktop-file-utils)
options=('!docs' '!libtool' '!emptydirs' '!strip' 'staticlibs')
source=("https://download.gnome.org/sources/glib/${pkgver%.*}/glib-$pkgver.tar.xz")
sha256sums=('4a39a2f624b8512d500d5840173eda7fa85f51c109052eae806acece85d345f0')
#prepare() {
# cd "glib-$pkgver"
#}
build() {
LTO=""
if check_option "lto" "n"; then
LTO="-Db_lto=false"
fi
CFLAGS+=' -Wno-unused-result -Wno-stringop-overflow'
arch-meson "glib-$pkgver" _build \
--default-library static \
--buildtype release \
-Dselinux=disabled \
-Dman=false \
-Dgtk_doc=false \
$LTO
ninja -C _build
}
check() {
meson test -C _build --no-suite flaky --timeout-multiplier 2 --print-errorlogs
}
package() {
DESTDIR="$pkgdir" meson install -C _build
# Only install static library
rm -rf "$pkgdir"/usr/{bin,include,share,lib/glib-2.0,lib/pkgconfig}
}
# vim: et:sw=2:ts=8
|