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 | |
download | aur-ae323a20ba3333e5f07693fe5f2c773b8d162e5f.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e3ea77abb62c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = python2-sockjs-tornado-git + pkgdesc = SockJS-tornado is a Python server side counterpart of SockJS-client browser library running on top of Tornado framework. + pkgver = 1.0.0.r17.gb90116f + pkgrel = 1 + url = https://github.com/mrjoes/sockjs-tornado + arch = any + license = MIT + makedepends = git + depends = python2 + depends = python2-tornado + source = python2-sockjs-tornado-git::git+https://github.com/mrjoes/sockjs-tornado.git + md5sums = SKIP + +pkgname = python2-sockjs-tornado-git + 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 +} |