diff options
author | nfnty | 2015-06-13 09:28:41 +0200 |
---|---|---|
committer | nfnty | 2015-06-13 09:28:41 +0200 |
commit | 1bacca04d9b7ac6e28e787f7330b82e095093a7c (patch) | |
tree | f4828291c74b73456ec01fd4fa91c077767cca20 /PKGBUILD | |
download | aur-1bacca04d9b7ac6e28e787f7330b82e095093a7c.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1287955aac01 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +pkgname=('python-websocket-client-git') +srcname='websocket-client' +pkgver='r1' +pkgrel='1' +pkgdesc='Websocket client for python' +arch=('any') +url='https://github.com/liris/websocket-client' +license=('GPL2') + +depends=('python-six') +makedepends=('git' 'python-setuptools') +provides=('python-websocket-client') +conflicts=('python-websocket-client') + +source=("${srcname}::git+https://github.com/liris/websocket-client.git") +sha512sums=('SKIP') + +pkgver() { + cd "${srcdir}/${srcname}" + + printf 'r%s.%s\n' \ + "$( git rev-list HEAD | wc --lines )" \ + "$( git describe --always | sed 's/-/./g' )" +} + +package() { + cd "${srcdir}/${srcname}" + + python setup.py install --root="${pkgdir}" --optimize=1 +} |