diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 22:26:59 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 22:28:05 -0300 |
commit | ec7c2bc8a0047cbbec96d77d894a968f4f95acfa (patch) | |
tree | 08f55903ab73b61ffe40b9a71dc257f6ee401f68 /community | |
parent | 2fc3466e31d54b2f3ccf5a5afa392b05137a58e4 (diff) | |
download | aports-ec7c2bc8a0047cbbec96d77d894a968f4f95acfa.tar.bz2 aports-ec7c2bc8a0047cbbec96d77d894a968f4f95acfa.tar.xz |
community/py3-snmp: drop py2
Diffstat (limited to 'community')
-rw-r--r-- | community/py3-snmp/APKBUILD | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/community/py3-snmp/APKBUILD b/community/py3-snmp/APKBUILD index be171e0740..a14ab73e3b 100644 --- a/community/py3-snmp/APKBUILD +++ b/community/py3-snmp/APKBUILD @@ -1,50 +1,30 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-snmp +pkgname=py3-snmp _pkgname=pysnmp pkgver=4.4.11 -pkgrel=0 -pkgdesc="A Python SNMP v1/v2c/v3 engine" +pkgrel=1 +pkgdesc="Python3 SNMP v1/v2c/v3 engine" url="http://snmplabs.com/pysnmp/index.html" arch="noarch" license="BSD-2-Clause" options="!check" -depends="py-asn1 py-crypto" -makedepends="py-setuptools py3-setuptools" -subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" +depends="python3 py3-asn1 py3-crypto" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz remove-bogus-check.patch " builddir="$srcdir/$_pkgname-$pkgver" +replaces="py-snmp" # Backwards compatibility +provides="py-snmp=$pkgver-r$pkgrel" # Backwards compatibility + build() { - python2 setup.py build python3 setup.py build } package() { - mkdir -p "$pkgdir" -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" -} - -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/py3-}" - _py python3 + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="0f61ad0c095398b4b511c854ea7156aae78495f299457b14f4d3b50833670ec77c905e9cf4bdc30c21dd3c3e62d1c3473d7895f0352140af6345b18c1db3e7d8 pysnmp-4.4.11.tar.gz |