diff options
author | yhfudev | 2015-06-09 12:53:37 -0400 |
---|---|---|
committer | yhfudev | 2015-06-09 12:53:37 -0400 |
commit | ae323a20ba3333e5f07693fe5f2c773b8d162e5f (patch) | |
tree | 382e60eb0e4850630700b1121767a037c7e21b28 /PKGBUILD | |
download | aur-python2-sockjs-tornado-git.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8065fed73e68 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Contributor: feilen <feilen1000@gmail.com> + +pkgname=python2-sockjs-tornado-git +pkgver=1.0.0.r17.gb90116f +pkgrel=1 +pkgdesc="SockJS-tornado is a Python server side counterpart of SockJS-client browser library running on top of Tornado framework." +arch=('any') +url="https://github.com/mrjoes/sockjs-tornado" +license=('MIT') +depends=( 'python2' 'python2-tornado' ) +makedepends=( 'git' ) +source=("$pkgname"::'git+https://github.com/mrjoes/sockjs-tornado.git') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + git describe --long --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' +} + +package() { + cd "$srcdir/$pkgname" + + python2 setup.py install --root="${pkgdir}" --optimize=1 || return 1 +} |