aboutsummaryrefslogtreecommitdiffstats
path: root/main/websocket++
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-06-03 21:33:14 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-06-03 21:33:14 +0200
commita1831eaed774167d0581be666b2b44e4ff86f1e4 (patch)
tree8e513eb9227e3c56a8ca5501f39ead1d85ff20c5 /main/websocket++
parent1823a7cfcdfe6beb2e8f9ddf2966442e92fe5a2d (diff)
downloadaports-a1831eaed774167d0581be666b2b44e4ff86f1e4.tar.bz2
aports-a1831eaed774167d0581be666b2b44e4ff86f1e4.tar.xz
testing/websocket++: move to main
Diffstat (limited to 'main/websocket++')
-rw-r--r--main/websocket++/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/websocket++/APKBUILD b/main/websocket++/APKBUILD
new file mode 100644
index 0000000000..45ae412916
--- /dev/null
+++ b/main/websocket++/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=websocket++
+pkgver=0.5.1
+pkgrel=0
+pkgdesc="C++/Boost Asio based websocket client/server library"
+url="https://github.com/zaphoyd/websocketpp"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="$depends_dev cmake"
+install=""
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/zaphoyd/websocketpp/archive/${pkgver}.tar.gz"
+
+_builddir="$srcdir"/websocketpp-$pkgver
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ mkdir -p "$_builddir"/build
+ cd "$_builddir"/build
+ cmake "$_builddir" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"/build
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="910e298f50f07f7d2f96642d28c082fd websocket++-0.5.1.tar.gz"
+sha256sums="6d4d9b7b9feee63d45b1a2f62610c419238346fb824336bd732dca31b3aea69e websocket++-0.5.1.tar.gz"
+sha512sums="004400d4cbc90b6c3a79b2ba8fa4420ec8020234364d008229cbfb80461609c07d6be7bac92a3e33e4ffe1ef8ea12b38f020bc730dd1f46160df117c538e149f websocket++-0.5.1.tar.gz"