/
PKGBUILD
29 lines (22 loc) · 942 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pkgname=python3-setuptools
pkgver=69.5.1
pkgrel=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python3 packages"
arch=('x86_64')
license=('PSF')
url="https://pypi.org/project/setuptools/"
depends=('python3-appdirs' 'python3-packaging')
makedepends=('asciidoc' 'python3-build' 'python3-installer' 'python3-setuptools' 'python3-wheel')
source=("https://files.pythonhosted.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz")
#source=("https://github.com/pypa/setuptools/archive/v${pkgver}.tar.gz")
sha256sums=('6c1fccdac05a97e598fb0ae3bbed5904ccb317337a51139dcd51453611bbb987')
build() {
cd setuptools-${pkgver}
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py
python3 -m build -nw
}
package() {
cd setuptools-${pkgver}
python3 -m installer --destdir=${pkgdir} dist/*.whl
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}