diff --git a/python-setuptools/PKGBUILD b/python-setuptools/PKGBUILD new file mode 100644 index 0000000..06badfb --- /dev/null +++ b/python-setuptools/PKGBUILD @@ -0,0 +1,29 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=python-setuptools +pkgver=72.2.0 +pkgrel=1 +pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages" +arch=('x86_64') +url="https://pypi.org/project/setuptools/" +license=('PSF') +depends=('python') +makedepends=('python-flit-core' 'python-wheel') +source=(https://github.com/pypa/setuptools/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(80aacbf633704e9c8bfa1d99fa5dd4dc59573efcf9e4042c13d3bcef91ac2ef9) + +build() { + cd ${pkgname#*-}-${pkgver} + + pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD +} + +package() { + cd ${pkgname#*-}-${pkgver} + + pip3 install --ignore-installed --root ${pkgdir} --no-index --find-links=dist setuptools +}