Date: Monday, February 5, 2018 @ 08:53:33 Author: anthraxx Revision: 289163
archrelease: copy trunk to community-x86_64 Added: yaml-cpp/repos/community-x86_64/PKGBUILD (from rev 289162, yaml-cpp/trunk/PKGBUILD) Deleted: yaml-cpp/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 73 +++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 43 insertions(+), 30 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-02-05 08:53:19 UTC (rev 289162) +++ PKGBUILD 2018-02-05 08:53:33 UTC (rev 289163) @@ -1,30 +0,0 @@ -# $Id$ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -# Contributor: Markus Martin <mar...@archwyrm.net> - -pkgname=yaml-cpp -pkgver=0.6.1 -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') -makedepends=('cmake') -source=(https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-${pkgver}.tar.gz) -sha512sums=('606482d1d38c6747e22604a24c119adb4b70287da7deadb94cc20d70df47122f1714ec9bfc8f566ecf075b94d48771df17430c50039cb984bdf1980f3b445791') - -build() { - cd yaml-cpp-yaml-cpp-$pkgver - - cmake . -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -DYAML_CPP_BUILD_TESTS=OFF - make -} - -package() { - cd yaml-cpp-yaml-cpp-$pkgver - - make DESTDIR=$pkgdir install - - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE -} Copied: yaml-cpp/repos/community-x86_64/PKGBUILD (from rev 289162, yaml-cpp/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-02-05 08:53:33 UTC (rev 289163) @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Markus Martin <mar...@archwyrm.net> + +pkgname=yaml-cpp +pkgver=0.6.1 +pkgrel=3 +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') +makedepends=('cmake') +source=(https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-${pkgver}.tar.gz) +sha512sums=('606482d1d38c6747e22604a24c119adb4b70287da7deadb94cc20d70df47122f1714ec9bfc8f566ecf075b94d48771df17430c50039cb984bdf1980f3b445791') + +prepare() { + mkdir -p yaml-cpp-yaml-cpp-$pkgver/build +} + +build() { + cd yaml-cpp-yaml-cpp-$pkgver/build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_BUILD_TYPE=Release + make +} + +check() { + cd yaml-cpp-yaml-cpp-$pkgver/build + make test + test/run-tests +} + +package() { + cd yaml-cpp-yaml-cpp-$pkgver + + make -C build DESTDIR="$pkgdir" install + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + # avoid conflicting gtest/gmock files + rm -rf "$pkgdir"/usr/include/{gmock,gtest} "$pkgdir"/usr/lib/lib{gmock,gtest}*.so +}