blob: 9017df9c2e07f260a44fc44c1090f70e94f825d4 (
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
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: nightuser <nightuser.android@gmail.com>
pkgname=glib2-static
pkgver=2.66.1
pkgrel=1
pkgdesc="Low level core library: Static library"
url="https://wiki.gnome.org/Projects/GLib"
license=(LGPL2.1)
arch=(x86_64)
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=("http://ftp.gnome.org/pub/gnome/sources/glib/${pkgver%.*}/glib-$pkgver.tar.xz")
sha512sums=('7e1d649fc4d5c275793d028a1710f7f50ef4968e5c07fe8c8e500e08b997e0b05be6b7428d5475b42d6a1aafeb993e9f3a31c07bb065a6924bdaa30b2b0bf5c4')
build() {
CFLAGS+=' -Wno-unused-result'
arch-meson "glib-$pkgver" _build \
--default-library static \
--buildtype release \
-Dselinux=disabled \
-Dman=false \
-Dgtk_doc=false \
-Dinternal_pcre=false
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}
}
|