summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4659f0cca73eb912ee9950c80b5ae9c3a647fab9 (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
50
51
52
53
# Maintainer:  Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
# Contributor: Gicu Gorodenco <cyclopsihus 'at' gmail 'dot' com>
# Contributor: rafael ff1 (aka josephgbr)

_name="libsigc++"
pkgname="lib32-${_name}"
_commit="6bef4e0005f00f0844d917866aec7e3b2d829fdf" # 2.12.1
pkgver=2.12.1
pkgrel=1
pkgdesc="Callback Framework for C++ (32-bit)"
url="https://libsigcplusplus.github.io/libsigcplusplus"
_url="https://github.com/libsigcplusplus/libsigcplusplus"
arch=('x86_64')
license=('LGPL-3.0-or-later')
depends=('lib32-gcc-libs' 'lib32-glibc' "${_name}")
makedepends=('meson>=0.55' 'mm-common')
provides=('lib32-libsigc++2.0' 'libsigc-2.0.so')
conflicts=('lib32-libsigc++2.0')
replaces=('lib32-libsigc++2.0')
_pkgsrc="libsigcplusplus-${_commit}"
source=("${_pkgsrc}.tar.gz::${_url}/archive/${_commit}.tar.gz")
sha256sums=('8ab92f83a6f396a748d1eb908837c28d99e2647194a0867a25f7b3f09678f02d')

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 benchmark=false \
    -D build-examples=false \
    -D build-documentation=false \
    -D build-pdf=false \
    -D validation=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"
}