diff options
author | anthraxx | 2015-09-10 17:16:34 +0200 |
---|---|---|
committer | anthraxx | 2015-09-10 17:16:34 +0200 |
commit | e2856bc85d6948a995e7661d7257da6409817338 (patch) | |
tree | 1ce502ac46afd7faa978a27c19d2f6e1c42eff6e | |
download | aur-e2856bc85d6948a995e7661d7257da6409817338.tar.gz |
addpkg: websocketpp-git 0.6.0.1461.c5510d6-1
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 55 |
2 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..85469cf1e47c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = websocketpp-git + pkgdesc = C++/Boost Asio based websocket client/server library + pkgver = 0.6.0.1461.c5510d6 + pkgrel = 1 + url = http://www.zaphoyd.com/websocketpp/ + arch = any + license = BSD + makedepends = git + makedepends = cmake + makedepends = boost + makedepends = boost-libs + makedepends = scons + optdepends = openssl: TLS socket component support + optdepends = asio: alternative asio transport support + optdepends = boost: non C++11 environments support + optdepends = boost-libs: non C++11 environments support + provides = websocketpp + conflicts = websocketpp + source = websocketpp-git::git+https://github.com/zaphoyd/websocketpp + sha512sums = SKIP + +pkgname = websocketpp-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..81901c46904e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> + +pkgname=websocketpp-git +_gitname=websocketpp +pkgver=0.6.0.1461.c5510d6 +pkgrel=1 +pkgdesc='C++/Boost Asio based websocket client/server library' +url='http://www.zaphoyd.com/websocketpp/' +arch=('any') +license=('BSD') +optdepends=( + 'openssl: TLS socket component support' + 'asio: alternative asio transport support' + 'boost: non C++11 environments support' + 'boost-libs: non C++11 environments support' +) +makedepends=('git' 'cmake' 'boost' 'boost-libs' 'scons') +provides=('websocketpp') +conflicts=('websocketpp') +source=(${pkgname}::git+https://github.com/zaphoyd/${_gitname}) +sha512sums=('SKIP') + +pkgver() { + cd ${pkgname} + printf "%s.%s.%s" "$(git describe --tags --abbrev=0|cut -dv -f2|cut -d- -f1)" \ + "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd ${pkgname} + WSPP_ENABLE_CPP11=1 \ + BOOST_LIBS=/usr/lib \ + BOOST_INCLUDES=/usr/include/boost \ + scons "${MAKEFLAGS}" + (cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + ) +} + +check() { + cd ${pkgname} + WSPP_ENABLE_CPP11=1 \ + BOOST_LIBS=/usr/lib \ + BOOST_INCLUDES=/usr/include/boost \ + scons test +} + +package() { + cd ${pkgname} + make -C build DESTDIR="${pkgdir}" install + install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm 644 readme.md "${pkgdir}/usr/share/doc/${pkgname}/README" +} + +# vim: ts=2 sw=2 et: |