# Contributor: Carlo Landmeter # Maintainer: prspkt pkgname=websocket++ pkgver=0.8.1 pkgrel=1 pkgdesc="C++/Boost Asio based websocket client/server library" url="https://github.com/zaphoyd/websocketpp" arch="all" license="BSD-3-Clause" depends="" depends_dev="" makedepends="$depends_dev cmake" install="" subpackages="" source="$pkgname-$pkgver.tar.gz::https://github.com/zaphoyd/websocketpp/archive/$pkgver.tar.gz" builddir="$srcdir"/websocketpp-$pkgver build() { cd "$builddir" if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ ${CMAKE_CROSSOPTS} make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="35e0261ed0285acf77d300768819bd380197de8acdf68223e2d7598481b9bfd69cb1653b435139771b1db6c16530c8d8cf9a887a8a6bba3fea126d0da4dbc13c websocket++-0.8.1.tar.gz"