Date: Tuesday, November 30, 2021 @ 20:19:08 Author: felixonmars Revision: 1057992
archrelease: copy trunk to community-staging-any Added: python-promise/repos/community-staging-any/ python-promise/repos/community-staging-any/PKGBUILD (from rev 1057987, python-promise/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: python-promise/repos/community-staging-any/PKGBUILD (from rev 1057987, python-promise/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2021-11-30 20:19:08 UTC (rev 1057992) @@ -0,0 +1,39 @@ +# Maintainer: Maxime Gauduin <aluc...@archlinux.org> + +pkgname=python-promise +pkgver=2.3.0 +pkgrel=4 +pkgdesc='Ultra-performant Promise implementation in Python' +url=https://github.com/syrusakbary/promise +arch=(any) +license=(MIT) +depends=( + python-six +) +makedepends=( + git + python-setuptools +) +source=(git+https://github.com/syrusakbary/promise.git#tag=ad8ebe68cd9c9686793e3449457f175a0fe43226) +sha256sums=(SKIP) + +pkgver() { + cd promise + + git describe --tags | sed 's/^v//' +} + +build() { + cd promise + + python setup.py build +} + +package() { + cd promise + + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 + install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-promise/ +} + +# vim: ts=2 sw=2 et: