[arch-commits] Commit in python2-setuptools/repos (testing-any testing-any/PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Aug 17 13:16:59 UTC 2022
Date: Wednesday, August 17, 2022 @ 13:16:59
Author: felixonmars
Revision: 453031
archrelease: copy trunk to testing-any
Added:
python2-setuptools/repos/testing-any/
python2-setuptools/repos/testing-any/PKGBUILD
(from rev 453030, python2-setuptools/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python2-setuptools/repos/testing-any/PKGBUILD (from rev 453030, python2-setuptools/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2022-08-17 13:16:59 UTC (rev 453031)
@@ -0,0 +1,42 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+
+pkgname=python2-setuptools
+pkgver=44.1.1
+pkgrel=2
+epoch=2
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/"
+depends=('python2')
+makedepends=('git')
+provides=('python2-distribute')
+replaces=('python2-distribute')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz")
+sha512sums=('aabddfbd62b95ce7d8e68d582362361d32b91e65e6d00c393593521a2c1c383552e324ae64974049ae9880072c8741e2393e6482cd07ff7dd30615e91e9e1450')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+ # Remove post-release tag since we are using stable tags
+ sed -e '/tag_build = .post/d' \
+ -e '/tag_date = 1/d' \
+ -i setuptools-$pkgver/setup.cfg
+
+ cd "$srcdir"/setuptools-$pkgver
+ sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py
+}
+
+build() {
+ cd setuptools-$pkgver
+ python2 bootstrap.py
+ python2 setup.py build
+}
+
+package() {
+ cd setuptools-$pkgver
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
+ rm "$pkgdir"/usr/bin/easy_install
+}
More information about the arch-commits
mailing list