# Maintainer: atom2013 <atom.long@hotmail.com>

_realname=pip
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=21.1.1
pkgrel=1
pkgdesc="The PyPA recommended tool for installing Python packages"
url="https://pip.pypa.io/"
arch=('any')
license=('MIT')
depends=('python' 'python-setuptools')
makedepends=('python' 'python-setuptools')
provides=("python3-${_realname}")
replaces=("python3-${_realname}")
conflicts=("python3-${_realname}")
source=(${_realname}-${pkgver}.tar.gz::https://github.com/pypa/${_realname}/archive/${pkgver}.tar.gz)
sha256sums=('5210d413c7f79cb46551a8ebbc3ae450e7da55ea73849cfc9687d132c0ae1092')

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  python setup.py install --prefix=/usr --root="${pkgdir}"

  install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
