[arch-commits] Commit in yaml-cpp/repos/community-staging-x86_64 (PKGBUILD PKGBUILD)
Sven-Hendrik Haase
svenstaro at gemini.archlinux.org
Mon Oct 25 00:20:43 UTC 2021
Date: Monday, October 25, 2021 @ 00:20:43
Author: svenstaro
Revision: 1033281
archrelease: copy trunk to community-staging-x86_64
Added:
yaml-cpp/repos/community-staging-x86_64/PKGBUILD
(from rev 1033280, yaml-cpp/trunk/PKGBUILD)
Deleted:
yaml-cpp/repos/community-staging-x86_64/PKGBUILD
----------+
PKGBUILD | 91 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 49 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-25 00:20:33 UTC (rev 1033280)
+++ PKGBUILD 2021-10-25 00:20:43 UTC (rev 1033281)
@@ -1,42 +0,0 @@
-# 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.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')
-license=('MIT')
-depends=('gcc-libs' 'glibc')
-provides=('libyaml-cpp.so')
-makedepends=('cmake' 'ninja')
-source=("https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-${pkgver}.tar.gz")
-sha512sums=('2de0f0ec8f003cd3c498d571cda7a796bf220517bad2dc02cba70c522dddde398f33cf1ad20da251adaacb2a07b77844111f297e99d45a7c46ebc01706bbafb5')
-
-build() {
- cd "${pkgname}-${pkgname}-${pkgver}"
- cmake -GNinja \
- -Bbuild \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DBUILD_SHARED_LIBS=ON \
- -DYAML_BUILD_SHARED_LIBS=ON \
- -DCMAKE_BUILD_TYPE=Release
- ninja -C build
-}
-
-check() {
- cd "${pkgname}-${pkgname}-${pkgver}"
- ninja -C build test
- build/test/yaml-cpp-tests
-}
-
-package() {
- 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
-}
Copied: yaml-cpp/repos/community-staging-x86_64/PKGBUILD (from rev 1033280, yaml-cpp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-10-25 00:20:43 UTC (rev 1033281)
@@ -0,0 +1,49 @@
+# 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.7.0
+pkgrel=2
+pkgdesc="YAML parser and emitter in C++, written around the YAML 1.2 spec"
+url="https://github.com/jbeder/yaml-cpp"
+arch=('x86_64')
+license=('MIT')
+depends=('gcc-libs' 'glibc')
+provides=('libyaml-cpp.so')
+makedepends=('cmake' 'ninja')
+source=("https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-${pkgver}.tar.gz"
+ https://patch-diff.githubusercontent.com/raw/jbeder/yaml-cpp/pull/1037.patch)
+sha512sums=('2de0f0ec8f003cd3c498d571cda7a796bf220517bad2dc02cba70c522dddde398f33cf1ad20da251adaacb2a07b77844111f297e99d45a7c46ebc01706bbafb5'
+ 'c20d5e9393496052c3326d78555345b83a2345831d4cbfec8cf50f9576f2731ddc456148815b23dba3765b61a1a69b0c05c9618f91751dad124dbe8f7ca19609')
+
+prepare() {
+ cd "${pkgname}-${pkgname}-${pkgver}"
+ patch -Np1 -i "${srcdir}"/1037.patch
+}
+
+build() {
+ cd "${pkgname}-${pkgname}-${pkgver}"
+ cmake -GNinja \
+ -Bbuild \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=ON \
+ -DYAML_BUILD_SHARED_LIBS=ON \
+ -DCMAKE_BUILD_TYPE=Release
+ ninja -C build
+}
+
+check() {
+ cd "${pkgname}-${pkgname}-${pkgver}"
+ ninja -C build test
+ build/test/yaml-cpp-tests
+}
+
+package() {
+ 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