diff options
author | Daichi Shinozaki | 2015-06-09 18:29:03 +0900 |
---|---|---|
committer | Daichi Shinozaki | 2015-06-09 18:29:03 +0900 |
commit | 96c1a95f67a99f9e53bec2d5e2014ee7d52d720d (patch) | |
tree | c00b9dec06c6947a0340990339f14c8ec2f51cb8 /PKGBUILD | |
download | aur-python2-wssh-git.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2e6001722f67 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# See http://wiki.archlinux.org/index.php/Python_Package_Guidelines for more +# information on Python packaging. + +# Maintainer: Your Name <youremail@domain.com> +pkgname=python2-wssh-git +pkgver=r42.91b3b9c +pkgrel=1 +pkgdesc="A command-line utility/shell for WebSocket inspired by netcat" +arch=('i686' 'x86_64') +url="https://github.com/progrium/wssh" +license=('MIT') +depends=('python2' 'python2-gevent' 'python2-ws4py') +options=(!emptydirs) +source=('wssh::git+https://github.com/progrium/wssh.git') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir"/wssh + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/wssh" + python2 setup.py install --root="$pkgdir/" --optimize=1 +} + +# vim:set ts=2 sw=2 et: |