[arch-commits] Commit in websocketpp/repos (community-any community-any/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sat Oct 24 00:04:28 UTC 2015


    Date: Saturday, October 24, 2015 @ 02:04:28
  Author: anthraxx
Revision: 144843

archrelease: copy trunk to community-any

Added:
  websocketpp/repos/community-any/
  websocketpp/repos/community-any/PKGBUILD
    (from rev 144842, websocketpp/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: websocketpp/repos/community-any/PKGBUILD (from rev 144842, websocketpp/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-10-24 00:04:28 UTC (rev 144843)
@@ -0,0 +1,50 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
+# Contributor: Daichi Shinozaki <dsdseg at gmail.com>
+# Contributor: skydrome <skydrome at i2pmail.org>
+# Contributor: MTsoul
+
+pkgname=websocketpp
+pkgver=0.6.0
+pkgrel=2
+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=('cmake' 'boost' 'boost-libs' 'scons')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/zaphoyd/${pkgname}/archive/${pkgver}.tar.gz)
+sha512sums=('55dbb8d1666ae0d35d4b46ec2c375c9d3d66f57a473f526175a63bc147279c12bd8e605e5812a68ef45d8b6f51f4cfd6e61a1b971d223b5dc6e5528a6937fef8')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  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}-${pkgver}
+  WSPP_ENABLE_CPP11=1 \
+    BOOST_LIBS=/usr/lib \
+    BOOST_INCLUDES=/usr/include/boost \
+    scons test
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  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:



More information about the arch-commits mailing list