# Maintainer: Francesco Marinucci pkgname=websocketpp pkgver=0.4.0 pkgrel=1 pkgdesc='C++/Boost Asio based websocket client/server library' url='http://www.zaphoyd.com/websocketpp/' license=('BSD') arch=('x86_64') makedepends=('cmake') source=("https://github.com/zaphoyd/${pkgname}/archive/${pkgver}.tar.gz") md5sums=('21ed2beaaf2fe3f76783e4b3bbaa8206') prepare() { if [[ -e ${srcdir}/${pkgname}-${pkgver}-build ]]; then rm -rf ${srcdir}/${pkgname}-${pkgver}-build; fi mkdir ${srcdir}/${pkgname}-${pkgver}-build cd ${srcdir}/${pkgname}-${pkgver}-build cmake -DCMAKE_INSTALL_PREFIX=/usr \ ../${pkgname}-${pkgver} } package() { cd ${srcdir}/${pkgname}-${pkgver}-build make DESTDIR=${pkgdir} install install -D -m644 ${srcdir}/${pkgname}-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }