Commit b61c6bee authored by Jakub Jirutka's avatar Jakub Jirutka

community/py-click: update to 6.6 and add py2/py3 subpackages

parent 62b1db03
...@@ -2,40 +2,48 @@ ...@@ -2,40 +2,48 @@
# Maintainer: Fabian Affolter <> # Maintainer: Fabian Affolter <>
pkgname=py-click pkgname=py-click
_pkgname=click _pkgname=click
pkgver=5.1 pkgver=6.6
pkgrel=0 pkgrel=0
pkgdesc="A simple wrapper around optparse for powerful command line utilities." pkgdesc="A simple wrapper around optparse for powerful command line utilities"
url="" url=""
arch="noarch" arch="noarch"
license="BSD" license="BSD"
depends="python" depends=""
depends_dev="" makedepends="python2-dev python3-dev py-setuptools"
makedepends="python-dev py-setuptools" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" source="${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
build() { build() {
cd "$_builddir" cd "$builddir"
python build || return 1
python2 build || return 1
python3 build
} }
package() { package() {
cd "$_builddir" mkdir -p "$pkgdir"
python install --prefix=/usr --root="$pkgdir" || return 1 }
_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 install --prefix=/usr --root="$subpkgdir"
} }
md5sums="9c5323008cccfe232a8b161fc8196d41 click-5.1.tar.gz" md5sums="d0b09582123605220ad6977175f3e51d click-6.6.tar.gz"
sha256sums="678c98275431fad324275dec63791e4a17558b40e5a110e20a82866139a85a5a click-5.1.tar.gz" sha256sums="cc6a19da8ebff6e7074f731447ef7e112bd23adf3de5c597cf9989f2fd8defe9 click-6.6.tar.gz"
sha512sums="b860b0227644f5d1cc24d41e66985421ec971f11f3f596fb46508fdc787200b949e7ef29b2035421ebb0115384688da03c3c95a0d6acc58dd3b566b32a2b7c6a click-5.1.tar.gz" sha512sums="5650cfe6c8b55a7e823e22248964143278d61383dac63497508a864807f1950f9dd5d76ce6a501e589dd81fed6e2a1248d3f8973be25a91950896b7408dc88bc click-6.6.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment