diff options
author | Patrick Northon | 2023-08-10 22:33:46 -0400 |
---|---|---|
committer | Patrick Northon | 2023-08-10 22:33:46 -0400 |
commit | 60d0cf663e9da53a8a18b849da5a7e88d3a0bb5c (patch) | |
tree | cb33aab769fdae1b62407dc1646b00b947f0014f | |
parent | 1e03e9de8790223d4ed4215b105468391027323f (diff) | |
download | aur-mingw-w64-yaml-cpp.tar.gz |
Update version.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 9 insertions, 21 deletions
@@ -1,6 +1,6 @@ pkgbase = mingw-w64-yaml-cpp pkgdesc = YAML parser and emitter in C++, written around the YAML 1.2 spec (mingw-w64) - pkgver = 0.7.0 + pkgver = 0.8.0 pkgrel = 1 url = https://github.com/jbeder/yaml-cpp arch = any @@ -11,7 +11,7 @@ pkgbase = mingw-w64-yaml-cpp options = staticlibs options = !strip options = !buildflags - source = https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.7.0.tar.gz - sha384sums = 5ab7a67ba57b9ee189ee4f9c5822ca834ef246740b43490a060a6b329860f494b6b8f3433bfeaf646e492336b2956e4e + source = yaml-cpp-0.8.0.tar.gz::https://github.com/jbeder/yaml-cpp/archive/0.8.0.tar.gz + sha384sums = 586ebc665c33e073be78670fd1810016a9e7ca8ae0ae8290328fc0c2f1e8f7acaa5e415eea5fb8a57efd772a011b1304 pkgname = mingw-w64-yaml-cpp @@ -3,7 +3,7 @@ _pkgname=yaml-cpp pkgname=mingw-w64-${_pkgname} -pkgver=0.7.0 +pkgver=0.8.0 pkgrel=1 pkgdesc='YAML parser and emitter in C++, written around the YAML 1.2 spec (mingw-w64)' url="https://github.com/jbeder/${_pkgname}" @@ -11,27 +11,15 @@ arch=('any') license=('MIT') depends=('mingw-w64-crt') makedepends=('mingw-w64-cmake' 'mingw-w64-gcc') -source=("https://github.com/jbeder/${_pkgname}/archive/${_pkgname}-${pkgver}.tar.gz") +source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/jbeder/${_pkgname}/archive/${pkgver}.tar.gz") options=(staticlibs !strip !buildflags) -sha384sums=('5ab7a67ba57b9ee189ee4f9c5822ca834ef246740b43490a060a6b329860f494b6b8f3433bfeaf646e492336b2956e4e') +sha384sums=('586ebc665c33e073be78670fd1810016a9e7ca8ae0ae8290328fc0c2f1e8f7acaa5e415eea5fb8a57efd772a011b1304') _architectures='i686-w64-mingw32 x86_64-w64-mingw32' _flags=( -Wno-dev -DCMAKE_BUILD_TYPE=Release - -DCMAKE_CXX_FLAGS_RELEASE='-O2 -DNDEBUG' -DCMAKE_C_FLAGS_RELEASE='-O2 -DNDEBUG' + -DCMAKE_CXX_FLAGS_RELEASE='-DNDEBUG' -DCMAKE_C_FLAGS_RELEASE='-DNDEBUG' -DYAML_CPP_BUILD_TOOLS=OFF ) -_srcdir="${_pkgname}-${_pkgname}-$pkgver" - -prepare() { - cd "${_srcdir}" - - # Fix pkgconfig and cmake files install location. - sed -i 's|INSTALL_DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/yaml-cpp"|INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/yaml-cpp"|' 'CMakeLists.txt' - sed -i 's|DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/yaml-cpp"|DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/yaml-cpp"|' 'CMakeLists.txt' - sed -i 's|${CMAKE_INSTALL_DATADIR}/pkgconfig)|${CMAKE_INSTALL_LIBDIR}/pkgconfig)|' 'CMakeLists.txt' - - #sed -i 's/add_test(yaml-cpp::test yaml-cpp-tests)/add_test(NAME yaml-cpp::test COMMAND yaml-cpp-tests)/' 'test/CMakeLists.txt' - #sed -i 's/build-windows-dll/OFF/' 'test/CMakeLists.txt' -} +_srcdir="${_pkgname}-$pkgver" build() { for _arch in ${_architectures}; do @@ -48,7 +36,7 @@ build() { # for _arch in ${_architectures}; do # ${_arch}-cmake -S "${_srcdir}" -B "build-${_arch}" "${_flags[@]}" -DYAML_CPP_BUILD_TESTS=ON # cmake --build "build-${_arch}" -# WINEPATH="build-${_arch}:/usr/${_arch}/bin" cmake --build "build-${_arch}" --target test +# cmake --build "build-${_arch}" --target test # done #} |