upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / towncrier / trunk / PKGBUILD
blob0b6c17f44d418a135ab44a1221e35febf8c260c2
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=towncrier
4 pkgver=22.12.0
5 pkgrel=3
6 pkgdesc="Utility to produce useful, summarised news files for your project"
7 arch=('any')
8 url="https://github.com/hawkowl/towncrier"
9 license=('MIT')
10 depends=('python-click' 'python-click-default-group' 'python-incremental' 'python-jinja'
11          'python-setuptools' 'python-tomli')
12 checkdepends=('git' 'python-twisted')
13 source=("https://pypi.io/packages/source/t/towncrier/towncrier-$pkgver.tar.gz")
14 sha512sums=('af602610ddf77ad2d241347bd59ac915637123b65aa9da41197674ea338f8d7c86d1faa59e58e8675286c44ea266915896041bf6e16c3e920e40ca85cf04e52d')
16 build() {
17   cd towncrier-$pkgver
18   python setup.py build
21 check() {
22   cd towncrier-$pkgver
23   python setup.py install --root="$PWD/tmp_install" --optimize=1
24   PYTHONPATH="$PWD/tmp_install/usr/lib/python3.11/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" trial towncrier
27 package() {
28   cd towncrier-$pkgver
29   python setup.py install -O1 --prefix=/usr --root="$pkgdir"
31   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
34 # vim:set ts=2 sw=2 et: