Date: Tuesday, September 4, 2018 @ 20:16:25 Author: dvzrv Revision: 376888
archrelease: copy trunk to community-testing-any Added: python-ws4py/repos/community-testing-any/ python-ws4py/repos/community-testing-any/PKGBUILD (from rev 376887, python-ws4py/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: python-ws4py/repos/community-testing-any/PKGBUILD (from rev 376887, python-ws4py/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2018-09-04 20:16:25 UTC (rev 376888) @@ -0,0 +1,40 @@ +# Maintainer: David Runge <d...@sleepmap.de> +_name=ws4py +pkgname=python-ws4py +pkgver=0.5.1 +pkgrel=1 +pkgdesc="Library providing an implementation of the WebSocket protocol defined in RFC 6455" +arch=('any') +url="https://github.com/Lawouach/WebSocket-for-Python" +license=('BSD') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-mock' 'python-cherrypy') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") +sha512sums=('e3202d7bc547a5447eaeeeabe2ff18bd884c89c02cf54e27d88ca9cd14bcd9f080f7ff7e02d36538200c096df0442809c171c99e37b16ff818866c45b40eeef9') + +prepare() { + mv -v "${_name}-$pkgver" "$pkgname-$pkgver" +} + +build() { + cd "$pkgname-$pkgver" + python setup.py build +} + +check() { + cd "$pkgname-$pkgver" + export PYTHONPATH=build:${PYTHONPATH} + py.test +} + +package() { + cd "$pkgname-$pkgver" + python setup.py install --skip-build \ + --optimize=1 \ + --prefix=/usr \ + --root="${pkgdir}" + install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -vDm 644 {CHANGELOG,README}.md \ + -t "${pkgdir}/usr/share/doc/${pkgname}" +}