blob: 82407132530dd65d0e602c4dd5b01c403d640eda (
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
|
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
_basename="glibmm"
_name="${_basename}-2.68"
pkgname="lib32-${_name}"
pkgver=2.82.0
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>=2.81' 'lib32-glibc'
'lib32-libsigc++-3.0')
makedepends=('meson>=0.62' 'mm-common')
checkdepends=('lib32-glib-networking')
provides=('lib'{'giomm','glibmm'{,_generate_extra_defs}}'-2.68.so')
_pkgsrc="${_basename}-${pkgver}"
source=("${_pkgsrc}.tar.xz::https://download.gnome.org/sources/${_basename}/${pkgver%.*}/${_pkgsrc}.tar.xz")
sha256sums=('38684cff317273615c67b8fa9806f16299d51e5506d9b909bae15b589fa99cb6')
build() {
export CFLAGS+=" -m32"
export CXXFLAGS+=" -m32"
export LDFLAGS+=" -m32"
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
cd "${srcdir}"
arch-meson "${_pkgsrc}" "${_pkgsrc}/build" \
--cross-file lib32 \
-D maintainer-mode=true \
-D build-documentation=false \
-D build-examples=false
meson compile -C "${_pkgsrc}/build"
}
check() {
cd "${srcdir}"
meson test -C "${_pkgsrc}/build" --print-errorlogs
}
package() {
cd "${srcdir}"
meson install -C "${_pkgsrc}/build" --destdir "${pkgdir}"
cd "${pkgdir}/usr"
rm -rf "include"
}
|