Date: Sunday, May 17, 2020 @ 12:03:17 Author: anthraxx Revision: 628245
archrelease: copy trunk to community-any Added: websocketpp/repos/community-any/PKGBUILD (from rev 628244, websocketpp/trunk/PKGBUILD) Deleted: websocketpp/repos/community-any/PKGBUILD ----------+ PKGBUILD | 102 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 52 insertions(+), 50 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-05-17 12:03:12 UTC (rev 628244) +++ PKGBUILD 2020-05-17 12:03:17 UTC (rev 628245) @@ -1,50 +0,0 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -# Contributor: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com> -# Contributor: Daichi Shinozaki <dsd...@gmail.com> -# Contributor: skydrome <skydr...@i2pmail.org> -# Contributor: MTsoul - -pkgname=websocketpp -pkgver=0.8.1 -pkgrel=1 -pkgdesc='C++/Boost Asio based websocket client/server library' -url='http://www.zaphoyd.com/websocketpp/' -arch=('any') -license=('BSD') -optdepends=( - 'openssl: TLS socket component support' - 'asio: alternative asio transport support' - 'boost: non C++11 environments support' - 'boost-libs: non C++11 environments support' -) -makedepends=('cmake' 'boost' 'boost-libs' 'scons') -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/zaphoyd/${pkgname}/archive/${pkgver}.tar.gz) -sha512sums=('35e0261ed0285acf77d300768819bd380197de8acdf68223e2d7598481b9bfd69cb1653b435139771b1db6c16530c8d8cf9a887a8a6bba3fea126d0da4dbc13c') - -build() { - cd ${pkgname}-${pkgver} - WSPP_ENABLE_CPP11=1 \ - BOOST_LIBS=/usr/lib \ - BOOST_INCLUDES=/usr/include/boost \ - scons "${MAKEFLAGS}" - (cd build - cmake -DCMAKE_INSTALL_PREFIX=/usr .. - ) -} - -check() { - cd ${pkgname}-${pkgver} - WSPP_ENABLE_CPP11=1 \ - BOOST_LIBS=/usr/lib \ - BOOST_INCLUDES=/usr/include/boost \ - scons test -} - -package() { - cd ${pkgname}-${pkgver} - make -C build DESTDIR="${pkgdir}" install - install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -Dm 644 readme.md "${pkgdir}/usr/share/doc/${pkgname}/README" -} - -# vim: ts=2 sw=2 et: Copied: websocketpp/repos/community-any/PKGBUILD (from rev 628244, websocketpp/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-05-17 12:03:17 UTC (rev 628245) @@ -0,0 +1,52 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com> +# Contributor: Daichi Shinozaki <dsd...@gmail.com> +# Contributor: skydrome <skydr...@i2pmail.org> +# Contributor: MTsoul + +pkgname=websocketpp +pkgver=0.8.2 +pkgrel=1 +pkgdesc='C++/Boost Asio based websocket client/server library' +url='https://www.zaphoyd.com/websocketpp/' +arch=('any') +license=('BSD') +optdepends=( + 'openssl: TLS socket component support' + 'asio: alternative asio transport support' + 'boost: non C++11 environments support' + 'boost-libs: non C++11 environments support' +) +makedepends=('cmake' 'boost' 'boost-libs' 'boost' 'zlib' 'openssl') +source=(https://github.com/zaphoyd/${pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha512sums=('b2afc63edb69ce81a3a6c06b3d857b3e8820f0e22300ac32bb20ab30ff07bd58bd5ada3e526ed8ab52de934e0e3a26cad2118b0e68ecf3e5e9e8d7101348fd06') +b2sums=('dacee33832f493d465afe208f9edea1393414a22c8db8f8c86b8f913521d0d8d68b95673a2e82b7479acfbab1ac541eda2d713a55d5de387b3879461d5884df7') + +prepare() { + cd ${pkgname}-${pkgver} + sed 's|"${WEBSOCKETPP_BOOST_LIBS}"|${WEBSOCKETPP_BOOST_LIBS}|' -i CMakeLists.txt +} + +build() { + cd ${pkgname}-${pkgver} + cmake -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_CPP11=ON \ + -DBUILD_TESTS=ON + make -C build +} + +check() { + cd ${pkgname}-${pkgver} + make -C build test +} + +package() { + cd ${pkgname}-${pkgver} + make -C build DESTDIR="${pkgdir}" install + install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm 644 readme.md -t "${pkgdir}/usr/share/doc/${pkgname}" +} + +# vim: ts=2 sw=2 et: