websocketpp: added to repo

This commit is contained in:
Francesco Marinucci 2014-12-15 23:25:06 +00:00
parent 4dca4fcdcb
commit 380f6964fa
2 changed files with 40 additions and 0 deletions

13
websocketpp/.AURINFO Normal file
View File

@ -0,0 +1,13 @@
pkgbase = websocketpp
pkgdesc = C++/Boost Asio based websocket client/server library
pkgver = 0.4.0
pkgrel = 1
url = http://www.zaphoyd.com/websocketpp/
arch = any
license = BSD
makedepends = cmake
source = https://github.com/zaphoyd/websocketpp/archive/0.4.0.tar.gz
md5sums = 21ed2beaaf2fe3f76783e4b3bbaa8206
pkgname = websocketpp

27
websocketpp/PKGBUILD Normal file
View File

@ -0,0 +1,27 @@
# Maintainer: Francesco Marinucci <framari [at] openmailbox [dot] org>
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
}