libsigc++: update to 2.12.1

This commit is contained in:
Biswapriyo Nath
2023-10-03 20:25:49 +00:00
parent 470ffbe362
commit 3cf30945a4

View File

@@ -3,21 +3,20 @@
_realname=libsigc++
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.10.8
pkgver=2.12.1
pkgrel=1
pkgdesc="Libsigc++ implements a full callback system for use in widget libraries - V2 (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url="https://libsigcplusplus.github.io/libsigcplusplus/"
license=("LGPL")
license=('spdx:LGPL-2.1-or-later')
makedepends=("${MINGW_PACKAGE_PREFIX}-meson"
"${MINGW_PACKAGE_PREFIX}-pkgconf"
"${MINGW_PACKAGE_PREFIX}-cc"
"mm-common")
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
options=('strip' '!debug' 'staticlibs')
source=("https://github.com/libsigcplusplus/libsigcplusplus/releases/download/${pkgver}/${_realname}-${pkgver}.tar.xz")
sha256sums=('235a40bec7346c7b82b6a8caae0456353dc06e71f14bc414bcc858af1838719a')
sha256sums=('a9dbee323351d109b7aee074a9cb89ca3e7bcf8ad8edef1851f4cf359bd50843')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
@@ -25,30 +24,25 @@ prepare() {
}
build() {
[[ -d "${srcdir}/build-${MINGW_CHOST}" ]] && rm -rf "${srcdir}/build-${MINGW_CHOST}"
mkdir -p "${srcdir}/build-${MINGW_CHOST}" && cd "${srcdir}/build-${MINGW_CHOST}"
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/meson.exe \
${MINGW_PREFIX}/bin/meson.exe setup \
--prefix="${MINGW_PREFIX}" \
--buildtype plain \
--wrap-mode=nofallback \
-Dauto_features=enabled \
-Dbuild-documentation=false \
--default-library both \
"../${_realname}-${pkgver}"
"${_realname}-${pkgver}" \
"build-${MSYSTEM}"
${MINGW_PREFIX}/bin/meson.exe compile
${MINGW_PREFIX}/bin/meson.exe compile -C "build-${MSYSTEM}"
}
check() {
cd "${srcdir}/build-${MINGW_CHOST}"
${MINGW_PREFIX}/bin/meson.exe test || true
${MINGW_PREFIX}/bin/meson.exe test -C "build-${MSYSTEM}" || warning "Tests failed"
}
package() {
cd "${srcdir}/build-${MINGW_CHOST}"
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/ninja.exe install
${MINGW_PREFIX}/bin/meson.exe install -C "build-${MSYSTEM}" --destdir "${pkgdir}"
install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
}