diff options
author | prspkt <prspkt@protonmail.com> | 2019-07-25 15:09:10 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-07-25 15:22:14 +0300 |
commit | 56bff6577e7806c4b8b0aa02904748546df09b06 (patch) | |
tree | ccf4920e15072d8374c417b1fbb21f39a4e75d6d /community/libteam | |
parent | d2bd29ec7b2045ef09ec06744ba9d8c7bf140968 (diff) | |
download | aports-56bff6577e7806c4b8b0aa02904748546df09b06.tar.bz2 aports-56bff6577e7806c4b8b0aa02904748546df09b06.tar.xz |
community/libteam: drop python2 bindings
Signed-off-by: prspkt <prspkt@protonmail.com>
Diffstat (limited to 'community/libteam')
-rw-r--r-- | community/libteam/APKBUILD | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/community/libteam/APKBUILD b/community/libteam/APKBUILD index 80ca1303e3..e682864d9e 100644 --- a/community/libteam/APKBUILD +++ b/community/libteam/APKBUILD @@ -8,9 +8,8 @@ url="http://libteam.org" arch="all" license="LGPL-2.1" makedepends="autoconf automake libtool libnl3-dev libdaemon-dev jansson-dev - dbus-dev linux-headers bsd-compat-headers doxygen swig - python2-dev python3-dev" -subpackages="$pkgname-dev $pkgname-doc py-$pkgname:py" + dbus-dev linux-headers bsd-compat-headers doxygen swig python3-dev" +subpackages="$pkgname-dev $pkgname-doc py3-$pkgname:_py3" source="$pkgname-$pkgver.tar.gz::https://github.com/jpirko/$pkgname/archive/v$pkgver.tar.gz fix-fd_set.patch memcpy-memset-implicit-declaration.patch @@ -30,25 +29,12 @@ build() { make || return 1 } -py() { - pkgdesc="Python 2/3 Bindings for libteam" +_py3() { + pkgdesc="Python Bindings for libteam" - cd "$builddir" - - mkdir -p "$subpkgdir" - cp -ar binding/python binding/python3 || return 1 - - cd binding/python - python2 ./setup.py build || return 1 - - cd ../python3 - python3 ./setup.py build || return 1 - - cd ../python - python2 ./setup.py install --root "$subpkgdir" -O1 || return 1 - - cd ../python3 - python3 ./setup.py install --root "$subpkgdir" -O1 || return 1 + cd "$builddir"/binding/python + python3 setup.py build || return 1 + python3 setup.py install --root "$subpkgdir" -O1 || return 1 } package() { |