summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed85358c0920f45b1d5501466884d9ac35e7a12e (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
# Maintainer: robertfoster

pkgname=websocketd-git
_gitpkg=websocketd
pkgver=147.fbda5f2
pkgrel=1
pkgdesc="Like inetd, but for WebSockets. Turn any application that uses STDIO/STDOUT into a WebSocket server."
arch=('i686' 'x86_64')
url="https://github.com/joewalnes/websocketd"
license=('BSD')
depends=('glibc')
conflicts=('websocketd')
makedepends=('git' 'mercurial')
source=('websocketd::git+https://github.com/joewalnes/websocketd.git')

build() {
  cd ${_gitpkg}
  make
}

package(){
  cd ${_gitpkg}
  install -Dm755 "${_gitpkg}" "${pkgdir}/usr/bin/${_gitpkg}"
}

pkgver() {
  cd ${_gitpkg}
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

md5sums=('SKIP')