blob: b2835a88192323868df82c5fa95a6628e164c95f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=websocket++
pkgver=0.6.0
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="5a485884c01f881aafbf1e055d851b82 websocket++-0.6.0.tar.gz"
sha256sums="688c52772b90a4694496c08f4ec1d712e24af17dc060d3392f0f3b4e18062898 websocket++-0.6.0.tar.gz"
sha512sums="55dbb8d1666ae0d35d4b46ec2c375c9d3d66f57a473f526175a63bc147279c12bd8e605e5812a68ef45d8b6f51f4cfd6e61a1b971d223b5dc6e5528a6937fef8 websocket++-0.6.0.tar.gz"
|