[arch-commits] Commit in yaml-cpp/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at gemini.archlinux.org
Sun Oct 24 23:15:07 UTC 2021
Date: Sunday, October 24, 2021 @ 23:15:06
Author: svenstaro
Revision: 1033258
upgpkg: yaml-cpp 0.7.0-1
Modified:
yaml-cpp/trunk/PKGBUILD
----------+
PKGBUILD | 41 +++++++++++++++++++----------------------
1 file changed, 19 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-24 22:49:36 UTC (rev 1033257)
+++ PKGBUILD 2021-10-24 23:15:06 UTC (rev 1033258)
@@ -1,10 +1,10 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
# Contributor: David Runge <dvzrv at archlinux.org>
# Contributor: Markus Martin <markus at archwyrm.net>
pkgname=yaml-cpp
-pkgver=0.6.3
-pkgrel=2
+pkgver=0.7.0
+pkgrel=1
pkgdesc="YAML parser and emitter in C++, written around the YAML 1.2 spec"
url="https://github.com/jbeder/yaml-cpp"
arch=('x86_64')
@@ -11,35 +11,32 @@
license=('MIT')
depends=('gcc-libs' 'glibc')
provides=('libyaml-cpp.so')
-makedepends=('cmake')
+makedepends=('cmake' 'ninja')
source=("https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-${pkgver}.tar.gz")
-sha512sums=('68b9ce987cabc1dec79382f922de20cc2c222cb9c090ecb93dc686b048da5c917facf4fce6d8f72feea44b61e5a6770ed3b0c199c4cd4e6bde5b6245c09f8e49')
+sha512sums=('2de0f0ec8f003cd3c498d571cda7a796bf220517bad2dc02cba70c522dddde398f33cf1ad20da251adaacb2a07b77844111f297e99d45a7c46ebc01706bbafb5')
-prepare() {
- mv -v "${pkgname}-${pkgname}-${pkgver}" "${pkgname}-${pkgver}"
-}
-
build() {
- cd "${pkgname}-${pkgver}"
- cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ cd "${pkgname}-${pkgname}-${pkgver}"
+ cmake -GNinja \
+ -Bbuild \
+ -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DYAML_BUILD_SHARED_LIBS=ON \
- -DCMAKE_BUILD_TYPE=Release \
- -B build \
- .
- make VERBOSE=1 -C build
+ -DCMAKE_BUILD_TYPE=Release
+ ninja -C build
}
check() {
- cd "${pkgname}-${pkgver}"
- make VERBOSE=1 -C build test
- build/test/run-tests
+ cd "${pkgname}-${pkgname}-${pkgver}"
+ ninja -C build test
+ build/test/yaml-cpp-tests
}
package() {
- cd "${pkgname}-${pkgver}"
- make DESTDIR="$pkgdir" -C build install
- install -vDm 644 {CONTRIBUTING,README}.md \
- -t "$pkgdir/usr/share/doc/$pkgname"
+ cd "${pkgname}-${pkgname}-${pkgver}"
+ DESTDIR="$pkgdir" ninja -C build install
+ install -vDm 644 {CONTRIBUTING,README}.md -t "$pkgdir/usr/share/doc/$pkgname"
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+ rm -rf "${pkgdir}"/usr/{lib,lib/pkgconfig,include}/*{gtest,gmock}*
+ rm -rf "${pkgdir}"/usr/lib/cmake/GTest
}
More information about the arch-commits
mailing list