diff options
Diffstat (limited to 'glib2-static/PKGBUILD')
-rw-r--r-- | glib2-static/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/glib2-static/PKGBUILD b/glib2-static/PKGBUILD new file mode 100644 index 000000000..188f54217 --- /dev/null +++ b/glib2-static/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: nightuser <nightuser.android@gmail.com> + +pkgname=glib2-static +pkgver=2.64.5 +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" + 'MR1405.patch' + 'MR1414.patch') +sha256sums=('9cbd5bd2715ead1c28d53c46f7b7b6ff6166f5887b772c1a9e3bf2910cfecc11' + '934d87deaf597d7122f89d03c22b122a89eacbe46e887ce8e920a344926da2fb' + '19cd43aa20962e2e27c55553b871ab1bb970289219545447887cc5e654245fed') + +prepare() { + cd "glib-$pkgver" + + patch -Np1 -i "$srcdir/MR1405.patch" + patch -Np1 -i "$srcdir/MR1414.patch" +} + +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} +} |