Similar to https://github.com/Alexpux/MINGW-packages/pull/2878 this adjusts the pkgbase names of all packages to match the directory name the PKGBUILD is in. The motivation for this is to provide links to PKGBUILD sources and git history from the web interface. The "dwz" directory is deleted as it just contains an older copy of the elfutils PKGBUILD (elfutils isn't in the repo)
43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Maintainer: atom2013 <atom.long@hotmail.com>
|
|
|
|
pkgbase=python-pip
|
|
pkgname=('python3-pip' 'python2-pip')
|
|
pkgver=9.0.1
|
|
pkgrel=3
|
|
pkgdesc="The PyPA recommended tool for installing Python packages"
|
|
url="https://pip.pypa.io/"
|
|
arch=('any')
|
|
license=('MIT')
|
|
makedepends=('python3' 'python3-setuptools' 'python2' 'python2-setuptools')
|
|
source=(https://pypi.io/packages/source/p/pip/pip-${pkgver}.tar.gz)
|
|
sha256sums=('09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d')
|
|
|
|
package_python3-pip() {
|
|
depends=('python3' 'python3-setuptools')
|
|
|
|
cd "$srcdir/pip-$pkgver"
|
|
python3 setup.py build
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
|
|
install -D -m644 LICENSE.txt \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
package_python2-pip() {
|
|
depends=('python2' 'python2-setuptools')
|
|
conflicts=('python-pyinstall')
|
|
replaces=('python-pyinstall')
|
|
|
|
cd "$srcdir/pip-$pkgver"
|
|
python2 setup.py build
|
|
python2 setup.py install --prefix=/usr --root="$pkgdir"
|
|
|
|
mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip2"
|
|
sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
|
|
${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
|
|
python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
|
|
|
|
install -D -m644 LICENSE.txt \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|