diff options
Diffstat (limited to 'testing/py3-frozendict/APKBUILD')
-rw-r--r-- | testing/py3-frozendict/APKBUILD | 45 |
1 files changed, 12 insertions, 33 deletions
diff --git a/testing/py3-frozendict/APKBUILD b/testing/py3-frozendict/APKBUILD index 145f75062a..393821d8f3 100644 --- a/testing/py3-frozendict/APKBUILD +++ b/testing/py3-frozendict/APKBUILD @@ -1,47 +1,26 @@ # Contributor: Daiki Maekawa <daikimaekawa29@gmail.com> # Maintainer: Daiki Maekawa <daikimaekawa29@gmail.com> -pkgname=py-frozendict +pkgname=py3-frozendict +_pkgname=frozendict pkgver=1.2 -pkgrel=1 +pkgrel=2 pkgdesc="immutable dictionary" url="https://github.com/slezica/python-frozendict" -arch="all" +options="!check" # No testsuite +arch="noarch" license="MIT" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -source="https://files.pythonhosted.org/packages/4e/55/a12ded2c426a4d2bee73f88304c9c08ebbdbadb82569ebdd6a0c007cfd08/frozendict-${pkgver}.tar.gz" -builddir="$srcdir/frozendict-${pkgver}" +makedepends="py3-setuptools" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-${pkgver}" + +replaces="py-frozendict" # Backwards compatibility +provides="py-frozendict=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$builddir" - python2 setup.py build python3 setup.py build } -check() { - cd "$builddir" - python2 setup.py test - python3 setup.py test -} - package() { - mkdir -p "$pkgdir" -} - -_py2() { - _py python2 -} - -_py3() { - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - install_if="$pkgname=$pkgver-$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="095cf5f6f8b02bf5666e04200431992bf4b3160aae3464d528bc256b1ab643e29dda78fe94d9e8c983dbfe66cd2459e0559122e17b6b8660c0552adc5318b3da frozendict-1.2.tar.gz" |