desktop/websocketpp/PKGBUILD

26 lines
810 B
Bash
Raw Normal View History

2014-12-16 07:25:06 +08:00
pkgname=websocketpp
2016-06-21 15:03:18 +08:00
pkgver=0.6.0
2014-12-16 07:25:06 +08:00
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")
2016-06-21 15:03:18 +08:00
md5sums=('5a485884c01f881aafbf1e055d851b82')
2014-12-16 07:25:06 +08:00
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
}