blob: 512821401d76d057be04f283585ac57982a5f75c (
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: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
# Contributor: Gicu Gorodenco <cyclopsihus 'at' gmail 'dot' com>
# Contributor: josephgbr <rafael.f.f1 'at' gmail 'dot' com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
_name="glibmm"
pkgname="lib32-${_name}"
pkgver=2.66.7
pkgrel=1
pkgdesc="C++ bindings for GLib (32-bit)"
url="https://www.gtkmm.org"
arch=('x86_64')
license=(LGPL-2.1-or-later)
depends=("${_name}" 'lib32-gcc-libs' 'lib32-glib2' 'lib32-glibc' 'lib32-libsigc++')
makedepends=('meson>=0.55' 'mm-common')
checkdepends=('lib32-glib-networking')
provides=('libgiomm-2.4.so' 'libglibmm-2.4.so' 'libglibmm_generate_extra_defs-2.4.so')
_pkgsrc="${_name}-${pkgver}"
source=("${_pkgsrc}.tar.xz::https://download.gnome.org/sources/${_name}/${pkgver%.*}/${_pkgsrc}.tar.xz")
sha256sums=('fe02c1e5f5825940d82b56b6ec31a12c06c05c1583cfe62f934d0763e1e542b3')
build() {
export CFLAGS+=" -m32"
export CXXFLAGS+=" -m32"
export LDFLAGS+=" -m32"
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
cd "${srcdir}"
arch-meson "${_pkgsrc}" build \
--cross-file lib32 \
-D maintainer-mode=true \
-D build-documentation=false \
-D build-examples=false
meson compile -C build
}
check() {
cd "${srcdir}"
meson test -C build --print-errorlogs
}
package() {
cd "${srcdir}"
meson install -C build --destdir "${pkgdir}"
cd "${pkgdir}/usr"
rm -rf "include"
}
|