diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-29 00:25:58 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-29 00:28:10 +0200 |
commit | fd7ff065f9a3ce24161b7577d2a828c57af55090 (patch) | |
tree | d8dafc3f417f20f90e97fb38bb2e296d758875c9 /testing/websockify | |
parent | 690d77a518e72908581e5895d368d63a9f6503f4 (diff) | |
download | aports-fd7ff065f9a3ce24161b7577d2a828c57af55090.tar.bz2 aports-fd7ff065f9a3ce24161b7577d2a828c57af55090.tar.xz |
testing/websockify: fix and improve abuild
Diffstat (limited to 'testing/websockify')
-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 } |