[arch-commits] Commit in python-flit-scm/repos (community-any community-any/PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Mon Aug 22 10:40:50 UTC 2022
Date: Monday, August 22, 2022 @ 10:40:50
Author: alerque
Revision: 1274613
archrelease: copy trunk to community-any
Added:
python-flit-scm/repos/community-any/
python-flit-scm/repos/community-any/PKGBUILD
(from rev 1274612, python-flit-scm/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-flit-scm/repos/community-any/PKGBUILD (from rev 1274612, python-flit-scm/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-08-22 10:40:50 UTC (rev 1274613)
@@ -0,0 +1,32 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Padraic Fanning <fanninpm AT miamioh DOT edu>
+
+_name=flit_scm
+pkgname=python-${_name//_/-}
+pkgver=1.7.0
+pkgrel=2
+pkgdesc='A PEP 518 backend using setuptools_scm to generate a version file, then flit to build'
+arch=(any)
+url="https://gitlab.com/WillDaSilva/$_name"
+license=(MIT)
+depends=(python
+ python-flit-core
+ python-setuptools-scm
+ python-tomli)
+makedepends=(python-{build,installer,wheel})
+_archive="$_name-$pkgver"
+source=("$_archive.tar.gz::$url/-/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('05a267d77f6f8ca50a053786fe3c1a74f7222f2955292f2e6c03d2d064a141dc')
+
+build() {
+ cd "$_archive"
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+ python -m build -wn
+}
+
+package() {
+ cd "$_archive"
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
More information about the arch-commits
mailing list