summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3af6512c0600d549174cc1c3019e9d2f919a8dd1 (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
# Maintainer: Wilson E. Alvarez <wilson.e.alvarez1@gmail.com>

_gitname=uWebSockets
pkgname=${_gitname,,}
pkgver=0.14.8
pkgrel=1
pkgdesc="µWS is one of the most lightweight, efficient & scalable WebSocket & HTTP server implementations available"
#arch=('i686' 'x86_64' 'armv6h' 'armv7h')
arch=('i686' 'x86_64')
url="https://github.com/uWebSockets/uWebSockets"
depends=('openssl' 'make' 'zlib' 'libuv')
makedepends=('cmake')
license=('ZLib')
conflicts=('uwebsockets')
provides=('uwebsockets')
replaces=('uwebsockets')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('663a22b521c8258e215e34e01c7fcdbbd500296aab2c31d36857228424bb7675')
#options+=(!strip)

build()
{
	cd "${srcdir}/${_gitname}-${pkgver}"
	make $MAKEFLAGS
}

package()
{
	# Add the compiled library:
	mkdir -p "${pkgdir}/usr/lib"
	mv "${srcdir}/${_gitname}-${pkgver}/libuWS.so" "${pkgdir}/usr/lib"

	# Add the headers:
	mkdir -p "${pkgdir}/usr/include/uWS"
	mv "${srcdir}/${_gitname}-${pkgver}/src/"*.h "${pkgdir}/usr/include/uWS"
}