From 2ea3c709780a1e48072f8243ce6a86a348ecbd8e Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Sun, 22 Jul 2018 19:15:11 +0000 Subject: community/py-prettytable: move from testing --- community/py-prettytable/APKBUILD | 52 +++++++++++++++++++++++++++++++++++++++ testing/py-prettytable/APKBUILD | 52 --------------------------------------- 2 files changed, 52 insertions(+), 52 deletions(-) create mode 100644 community/py-prettytable/APKBUILD delete mode 100644 testing/py-prettytable/APKBUILD diff --git a/community/py-prettytable/APKBUILD b/community/py-prettytable/APKBUILD new file mode 100644 index 0000000000..e8fe65ba9a --- /dev/null +++ b/community/py-prettytable/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Matt Dainty +# Maintainer: Roberto Oliveira +pkgname=py-prettytable +_pkgname=prettytable +pkgver=0.7.2 +pkgrel=1 +pkgdesc="A simple Python library for easily displaying tabular data in a visually appealing ASCII table format" +url="http://code.google.com/p/prettytable/" +arch="noarch" +license="BSD" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" +source="https://files.pythonhosted.org/packages/source/P/PrettyTable/$_pkgname-$pkgver.tar.gz" + +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py test + python3 setup.py test +} + +package() { + cd "$builddir" + mkdir -p "$pkgdir" +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +sha512sums="84611b9ad11bd428cdb00795e0a9baff44d027331b73ed1742596acda8acc8aca3df4276fa2f2ca2289f10b2989b3c86556de70bca6a9773b15cd80c54c33117 prettytable-0.7.2.tar.gz" diff --git a/testing/py-prettytable/APKBUILD b/testing/py-prettytable/APKBUILD deleted file mode 100644 index e8fe65ba9a..0000000000 --- a/testing/py-prettytable/APKBUILD +++ /dev/null @@ -1,52 +0,0 @@ -# Contributor: Matt Dainty -# Maintainer: Roberto Oliveira -pkgname=py-prettytable -_pkgname=prettytable -pkgver=0.7.2 -pkgrel=1 -pkgdesc="A simple Python library for easily displaying tabular data in a visually appealing ASCII table format" -url="http://code.google.com/p/prettytable/" -arch="noarch" -license="BSD" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" -source="https://files.pythonhosted.org/packages/source/P/PrettyTable/$_pkgname-$pkgver.tar.gz" - -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - python2 setup.py build - python3 setup.py build -} - -check() { - cd "$builddir" - python2 setup.py test - python3 setup.py test -} - -package() { - cd "$builddir" - mkdir -p "$pkgdir" -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" -} - -_py2() { - replaces="$pkgname" - _py python2 -} - -_py3() { - _py python3 -} - -sha512sums="84611b9ad11bd428cdb00795e0a9baff44d027331b73ed1742596acda8acc8aca3df4276fa2f2ca2289f10b2989b3c86556de70bca6a9773b15cd80c54c33117 prettytable-0.7.2.tar.gz" -- cgit v1.2.3