From 511009dc2ca104e24b8dcd7e39a7acff224a7d2b Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 26 Sep 2019 19:12:17 -0300 Subject: main/py3-atomicwrites: rename from py-atomicwrites Closes !173 --- main/py-atomicwrites/APKBUILD | 45 ------------------------------------------ main/py3-atomicwrites/APKBUILD | 45 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 main/py-atomicwrites/APKBUILD create mode 100644 main/py3-atomicwrites/APKBUILD (limited to 'main') diff --git a/main/py-atomicwrites/APKBUILD b/main/py-atomicwrites/APKBUILD deleted file mode 100644 index 91f09c2299..0000000000 --- a/main/py-atomicwrites/APKBUILD +++ /dev/null @@ -1,45 +0,0 @@ -# Contributor: Jakub Jirutka -# Maintainer: Jakub Jirutka -pkgname=py-atomicwrites -_pkgname=python-atomicwrites -pkgver=1.3.0 -pkgrel=0 -pkgdesc="Powerful Python library for atomic file writes" -url="https://github.com/untitaker/python-atomicwrites" -arch="noarch" -license="MIT" -makedepends="python2-dev python3-dev py-setuptools" -options="!check" # requires pytest which depends on this aport (cyclic dep) -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -source="https://github.com/untitaker/python-atomicwrites/archive/$pkgver/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - python2 setup.py build - python3 setup.py build -} - -package() { - mkdir -p "$pkgdir" -} - -_py2() { - _py python2 -} - -_py3() { - _py python3 -} - -_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" -} - -sha512sums="7a257286ba35d6f0db3772ef9666283f29c36719fe35eeb1cb9c36341f0f6a0d7c316d236927ef031f2b8ac6c245320481f51c59e0e1ccf2cbea49065a13d474 python-atomicwrites-1.3.0.tar.gz" diff --git a/main/py3-atomicwrites/APKBUILD b/main/py3-atomicwrites/APKBUILD new file mode 100644 index 0000000000..91f09c2299 --- /dev/null +++ b/main/py3-atomicwrites/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Jakub Jirutka +# Maintainer: Jakub Jirutka +pkgname=py-atomicwrites +_pkgname=python-atomicwrites +pkgver=1.3.0 +pkgrel=0 +pkgdesc="Powerful Python library for atomic file writes" +url="https://github.com/untitaker/python-atomicwrites" +arch="noarch" +license="MIT" +makedepends="python2-dev python3-dev py-setuptools" +options="!check" # requires pytest which depends on this aport (cyclic dep) +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="https://github.com/untitaker/python-atomicwrites/archive/$pkgver/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + _py python2 +} + +_py3() { + _py python3 +} + +_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" +} + +sha512sums="7a257286ba35d6f0db3772ef9666283f29c36719fe35eeb1cb9c36341f0f6a0d7c316d236927ef031f2b8ac6c245320481f51c59e0e1ccf2cbea49065a13d474 python-atomicwrites-1.3.0.tar.gz" -- cgit v1.2.3