desktop/websocketpp/PKGBUILD
2016-06-21 08:03:18 +01:00

26 lines
810 B
Bash

pkgname=websocketpp
pkgver=0.6.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=('5a485884c01f881aafbf1e055d851b82')
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
}