aboutsummaryrefslogtreecommitdiffstats
path: root/main/websocket++/APKBUILD
blob: 9ddf2bbadcb2a1623044f386a3dfbb4191e37e33 (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.7.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="5027c20cde76fdaef83a74acfcf98e23  websocket++-0.7.0.tar.gz"
sha256sums="07b3364ad30cda022d91759d4b83ff902e1ebadb796969e58b59caa535a03923  websocket++-0.7.0.tar.gz"
sha512sums="91a86d4f5120db3f474169bb146f865f82167b1e9eedabec8793b31005e4ce3d22083283bc1b9f9e37fa0da835addcb2b68260a27c753852c06b3b1bb2f3c12e  websocket++-0.7.0.tar.gz"