Skip to content

Commit

Permalink
Merge pull request msys2#21566 from ikspress/msgpack-c
Browse files Browse the repository at this point in the history
msgpack-c: update to 6.0.2
  • Loading branch information
lazka authored Aug 6, 2024
2 parents 93cb315 + 22f578c commit 94185b4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 29 deletions.
2 changes: 1 addition & 1 deletion mingw-w64-groonga/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=groonga
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=14.0.6
pkgrel=1
pkgrel=2
pkgdesc="An opensource fulltext search engine (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64')
Expand Down
41 changes: 15 additions & 26 deletions mingw-w64-msgpack-c/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,40 @@
_realname=msgpack-c
pkgbase="mingw-w64-${_realname}"
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=5.0.0
pkgver=6.0.2
pkgrel=1
pkgdesc="MessagePack implementation for C and C++ (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang32' 'clang64' 'clangarm64')
url="https://github.com/msgpack/msgpack-c"
license=('spdx:BSL-1.0')
makedepends=("${MINGW_PACKAGE_PREFIX}-gtest"
"${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-zlib"
"${MINGW_PACKAGE_PREFIX}-cc")
depends=()
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-ninja")
source=("https://github.com/msgpack/msgpack-c/releases/download/c-${pkgver}/msgpack-c-${pkgver}.tar.gz")
sha256sums=('eb6d77f32dbaaae9174d96cacfe02af30bf1ea329c45018074cd95ac6e6fa6e5')
sha256sums=('5e90943f6f5b6ff6f4bda9146ada46e7e455af3a77568f6d503f35618c1b2a12')

build() {
[[ -d "${srcdir}/build-${MSYSTEM}" ]] && rm -rf "${srcdir}/build-${MSYSTEM}"
mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}"

declare -a extra_config
if check_option "debug" "n"; then
extra_config+=("-DCMAKE_BUILD_TYPE=Release")
else
extra_config+=("-DCMAKE_BUILD_TYPE=Debug")
fi

MSYS2_ARG_CONV_EXCL='-DCMAKE_INSTALL_PREFIX=' \
${MINGW_PREFIX}/bin/cmake \
-G "Ninja" \
MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
cmake -G "Ninja" -B "build-${MSYSTEM}" -S "msgpack-c-${pkgver}" \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
${extra_config} \
-DMSGPACK_BUILD_EXAMPLES=OFF \
-DMSGPACK_BUILD_TESTS=OFF \
../msgpack-c-${pkgver}

${MINGW_PREFIX}/bin/cmake --build .
}
-DMSGPACK_ENABLE_SHARED=ON \
-DMSGPACK_ENABLE_STATIC=ON \
"${extra_config[@]}"

check() {
cd "${srcdir}/build-${MSYSTEM}"
${MINGW_PREFIX}/bin/ctest || true
cmake --build "build-${MSYSTEM}"
}

package() {
cd "${srcdir}/build-${MSYSTEM}"
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install .
install -Dm644 ${srcdir}/msgpack-c-${pkgver}/LICENSE_1_0.txt ${okgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE_1_0.txt
DESTDIR="${pkgdir}" cmake --install "build-${MSYSTEM}"
install -Dm644 ${srcdir}/msgpack-c-${pkgver}/LICENSE_1_0.txt -t ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}
}
2 changes: 1 addition & 1 deletion mingw-w64-neovim-qt/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=neovim-qt
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=0.2.18
pkgrel=1
pkgrel=2
pkgdesc="Neovim client library and GUI, in Qt5. (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-neovim/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=neovim
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=0.9.5
pkgrel=4
pkgrel=5
pkgdesc='Fork of Vim aiming to improve user experience, plugins, and GUIs (mingw-w64)'
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
Expand Down

0 comments on commit 94185b4

Please sign in to comment.