summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMatthew Gamble2022-01-26 14:24:00 +1100
committerMatthew Gamble2022-01-26 14:24:00 +1100
commitc3745b742ead971f40993c649915ece35738d92a (patch)
tree3333ad6144c9bc89cb95c03c6a1c9b39fc38f06c /PKGBUILD
parentae1af32fbc1d6f5c90c75932df401fbb78f3c899 (diff)
downloadaur-c3745b742ead971f40993c649915ece35738d92a.tar.gz
Various package updates, including pkgrel bump for python3.10 rebuild
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 18 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e903021e281..b548bf7d744 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,32 @@
# Maintainer: Maikel Wever <maikelwever@gmail.com>
+# Maintainer: Matthew Gamble <git@matthewgamble.net>
+
pkgname=python-executor
pkgver=23.2
-pkgrel=1
+pkgrel=2
pkgdesc="Programmer friendly subprocess wrapper"
url="https://github.com/xolox/python-executor"
license=('MIT')
depends=('python' 'python-coloredlogs' 'python-fasteners' 'python-humanfriendly' 'python-property-manager' 'python-six')
makedepends=('python-setuptools')
-source=("https://github.com/xolox/${pkgname}/archive/${pkgver}.tar.gz")
-md5sums=('83227fb7030f3b3675b5f562821f9a7f')
+source=("https://pypi.io/packages/source/e/executor/executor-${pkgver}.tar.gz")
+sha256sums=('e1c6c18ceca9e64f3f9e691bc5271806037c9a96c01e683ce46c03494af6033d')
arch=('any')
+build() {
+ cd "executor-${pkgver}"
+
+ python setup.py build
+}
+
package() {
- cd "$srcdir/$pkgname-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1
- mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
- cp LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
+ cd "executor-${pkgver}"
+
+ PYTHONHASHSEED=0 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+ install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-executor/LICENSE.txt"
+ install -Dm644 README.rst "${pkgdir}/usr/share/doc/python-executor/README.rst"
+ install -Dm644 CHANGELOG.rst "${pkgdir}/usr/share/doc/python-executor/CHANGELOG.rst"
}
# vim:set ts=2 sw=2 et: