diff options
Diffstat (limited to 'testing/websockify/APKBUILD')
-rw-r--r-- | testing/websockify/APKBUILD | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/testing/websockify/APKBUILD b/testing/websockify/APKBUILD index b2b2faa8d7..29dd2a53b6 100644 --- a/testing/websockify/APKBUILD +++ b/testing/websockify/APKBUILD @@ -7,37 +7,28 @@ pkgdesc="WebSockets support for any application/server" url="https://github.com/kanaka/websockify" arch="noarch" license="LGPLv3" -depends="py-$pkgname py-setuptools py2-numpy" -depends_dev="" +depends="py2-$pkgname=$pkgver-r$pkgrel py-setuptools py2-numpy" makedepends="python2-dev" -install="" -subpackages="py-$pkgname:py" +subpackages="py2-$pkgname:py2" source="$pkgname-$pkgver.tar.gz::https://github.com/kanaka/$pkgname/archive/v$pkgver.tar.gz" - -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" - python2 setup.py build || return 1 + cd "$builddir" + python2 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + cd "$builddir" + python2 setup.py install --prefix=/usr --root="$pkgdir" } -py() { - depends="python2" - pkgdesc="$pkgdesc (python bindings)" +py2() { + pkgdesc="$pkgdesc (python2)" + depends="python2 py2-numpy" + replaces="py-$pkgname" # for backward compatibility + provides="py-$pkgname" # for backward compatibility + mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/lib "$subpkgdir"/usr } |