Date: Thursday, April 6, 2023 @ 14:29:53
Author: felixonmars
Revision: 1439236
archrelease: copy trunk to community-staging-any
Added:
python-pastel/repos/community-staging-any/
python-pastel/repos/community-staging-any/PKGBUILD
(from rev 1439232, python-pastel/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-pastel/repos/community-staging-any/PKGBUILD (from rev 1439232,
python-pastel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 14:29:53 UTC (rev 1439236)
@@ -0,0 +1,34 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+
+_pkgname=pastel
+pkgname=python-pastel
+pkgver=0.2.1
+pkgrel=6
+pkgdesc='Bring colors to your terminal'
+arch=(any)
+url="https://github.com/sdispater/${_pkgname}"
+license=(MIT)
+depends=(python)
+makedepends=(python-{build,installer,wheel}
+ python-poetry-core)
+checkdepends=(python-pytest)
+_archive="$_pkgname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_archive.tar.gz")
+sha256sums=('e6581ac04e973cac858828c6202c1e1e81fee1dc7de7683f3e1ffe0bfd8a573d')
+
+build(){
+ cd "$_archive"
+ python -m build -wn
+}
+
+check() {
+ cd "$_archive"
+ python -m pytest
+}
+
+package() {
+ cd "$_archive"
+ python -m installer -d "${pkgdir}" dist/*.whl
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}