summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba94515e2c9ffe26db73f6ceb531f217de3c270d (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
pkgname=gwsocket-git
pkgver=r178.728dd5b
pkgrel=1
pkgdesc="gwsocket is a simple, standalone, language-agnostic, RFC6455 compliant WebSocket Server, written in C."
arch=("x86_64" "i686")
url="http://gwsocket.io/"
license=("MIT")
provides=("gwsocket")
conflicts=("gwsocket")
replaces=("gwsocket")
source=("gwsocket-git::git+https://github.com/allinurl/gwsocket")
md5sums=("SKIP")
makedepends=("git" "make")


pkgver() {
    cd "$pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$pkgname"
    autoreconf -fiv
    ./configure --prefix=/usr
    make
}

package() {
    cd "$pkgname"
    make DESTDIR="$pkgdir/" install
}