[arch-commits] Commit in afew/repos/community-any (PKGBUILD PKGBUILD)

Daniel M. Capella polyzen at gemini.archlinux.org
Tue Sep 6 23:10:29 UTC 2022


    Date: Tuesday, September 6, 2022 @ 23:10:29
  Author: polyzen
Revision: 1296006

archrelease: copy trunk to community-any

Added:
  afew/repos/community-any/PKGBUILD
    (from rev 1296005, afew/trunk/PKGBUILD)
Deleted:
  afew/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   79 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 42 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-06 23:07:51 UTC (rev 1296005)
+++ PKGBUILD	2022-09-06 23:10:29 UTC (rev 1296006)
@@ -1,37 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Lucas Hoffmann
-# Contributor: Giancarlo Razzolini <grazzolini at archlinux.org>
-# Contributor: Kazuo Teramoto <kaz.rag at gmail.com>
-
-pkgname=afew
-pkgver=3.0.1
-pkgrel=4
-pkgdesc='Initial tagging script for notmuch mail'
-arch=(any)
-url=https://github.com/afewmail/afew
-license=('custom:BSD')
-depends=('notmuch' 'python-chardet' 'python-dkim' 'python-setuptools')
-makedepends=('python-setuptools-scm' 'python-sphinx')
-checkdepends=('python-freezegun')
-source=("https://files.pythonhosted.org/packages/source/a/afew/afew-$pkgver.tar.gz")
-sha256sums=('ce857fe1a3bc0982c1dac81aef66cacc148e4f9db06da720f869392af1c2ee72')
-
-build() {
-  cd afew-$pkgver
-  python setup.py build
-  python setup.py build_sphinx -b man
-}
-
-check() {
-  cd afew-$pkgver
-  python -m unittest discover afew/tests
-}
-
-package() {
-  cd afew-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 -t "$pkgdir"/usr/share/man/man1 build/sphinx/man/afew.1
-  install -Dm644 -t "$pkgdir"/usr/share/licenses/afew LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: afew/repos/community-any/PKGBUILD (from rev 1296005, afew/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-06 23:10:29 UTC (rev 1296006)
@@ -0,0 +1,42 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Lucas Hoffmann
+# Contributor: Giancarlo Razzolini <grazzolini at archlinux.org>
+# Contributor: Kazuo Teramoto <kaz.rag at gmail.com>
+
+pkgname=afew
+pkgver=3.0.1
+pkgrel=5
+pkgdesc='Initial tagging script for notmuch mail'
+arch=('any')
+url=https://github.com/afewmail/afew
+license=('custom:BSD')
+depends=('notmuch' 'python-chardet' 'python-dkim' 'python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
+             'python-sphinx' 'python-wheel')
+checkdepends=('python-freezegun')
+source=("https://files.pythonhosted.org/packages/source/a/afew/afew-$pkgver.tar.gz")
+sha256sums=('ce857fe1a3bc0982c1dac81aef66cacc148e4f9db06da720f869392af1c2ee72')
+b2sums=('9ce125ec2359f7cf4630b9602b3068327adc06a699d325c90bc9b545df9ce7f3a62623cc733dfec55ee3e51523e4512ebec04e7186470fc56bb1589a7141cbc9')
+
+build() {
+  cd afew-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+  PYTHONPATH="build:$PYTHONPATH" sphinx-build -b man docs build
+}
+
+check() {
+  cd afew-$pkgver
+  python -m unittest discover afew/tests
+}
+
+package() {
+  cd afew-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 -t "$pkgdir"/usr/share/man/man1 build/afew.1
+
+  # Symlink license file
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s "$site_packages"/$pkgname-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list