Date: Wednesday, April 5, 2023 @ 18:35:14
  Author: felixonmars
Revision: 1437894

archrelease: copy trunk to community-staging-any

Added:
  towncrier/repos/community-staging-any/
  towncrier/repos/community-staging-any/PKGBUILD
    (from rev 1437893, towncrier/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: towncrier/repos/community-staging-any/PKGBUILD (from rev 1437893, 
towncrier/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-05 18:35:14 UTC (rev 1437894)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=towncrier
+pkgver=22.12.0
+pkgrel=2
+pkgdesc="Utility to produce useful, summarised news files for your project"
+arch=('any')
+url="https://github.com/hawkowl/towncrier";
+license=('MIT')
+depends=('python-click' 'python-click-default-group' 'python-incremental' 
'python-jinja'
+         'python-setuptools' 'python-tomli')
+checkdepends=('git' 'python-twisted')
+source=("https://pypi.io/packages/source/t/towncrier/towncrier-$pkgver.tar.gz";)
+sha512sums=('af602610ddf77ad2d241347bd59ac915637123b65aa9da41197674ea338f8d7c86d1faa59e58e8675286c44ea266915896041bf6e16c3e920e40ca85cf04e52d')
+
+build() {
+  cd towncrier-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd towncrier-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.11/site-packages" 
PATH="$PWD/tmp_install/usr/bin:$PATH" trial towncrier
+}
+
+package() {
+  cd towncrier-$pkgver
+  python setup.py install -O1 --prefix=/usr --root="$pkgdir"
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to