author | Felix Yan
<felixonmars@archlinux.org> 2021-03-30 14:25:37 UTC |
committer | Felix Yan
<felixonmars@archlinux.org> 2021-03-30 14:25:37 UTC |
parent | 0ab30b401af8b6a0700b9912323c42b07ac2b495 |
PKGBUILD | +6 | -21 |
diff --git a/PKGBUILD b/PKGBUILD index 594c8ef..7d3ace6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,41 +1,26 @@ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: Carl George < arch at cgtx dot us > -pkgbase=python-click -pkgname=("python-click" "python2-click") +pkgname=python-click _realname=click pkgver=7.1.2 -pkgrel=3 +pkgrel=4 pkgdesc="A simple wrapper around optparse for powerful command line utilities" arch=("any") url="http://click.pocoo.org/" license=("BSD") -makedepends=("python-setuptools" "python2-setuptools") -source=("$pkgname-$pkgver.tar.gz::https://github.com/pallets/click/archive/${pkgver}.tar.gz") +depends=("python") +makedepends=("python-setuptools") +source=("https://github.com/pallets/click/archive/${pkgver}/$pkgname-$pkgver.tar.gz") sha512sums=('d0caf2fb0a258774a18a7b8f83bdfa73abeb70196a70b45a6cc35befaeb862d068d2f2cce4e27201ab2e3adcd02e7e2f099d6c37c497a507010eefa10ad16eba') -prepare() { - cp -a $_realname-$pkgver{,-python2} -} - build() { cd "${srcdir}/${_realname}-${pkgver}" python setup.py build - - cd "${srcdir}/${_realname}-${pkgver}-python2" - python2 setup.py build } -package_python-click() { - depends=("python") +package() { cd "${srcdir}/${_realname}-${pkgver}" python setup.py install --skip-build --root="${pkgdir}" --optimize=1 install -Dm644 "LICENSE.rst" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.rst" } - -package_python2-click() { - depends=("python2") - cd "${srcdir}/${_realname}-${pkgver}-python2" - python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1 - install -Dm644 "LICENSE.rst" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.rst" -}