2021-07-24 10:00:43 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
2021-09-27 23:54:24 +00:00
|
|
|
# Contributor: Jayson Reis <santosdosreis@gmail.com>
|
2021-07-24 10:00:43 +00:00
|
|
|
|
|
|
|
pkgname=commitizen
|
2021-09-27 22:12:12 +00:00
|
|
|
pkgver=2.19.0
|
2021-09-27 23:54:24 +00:00
|
|
|
pkgrel=2
|
2021-07-24 10:00:43 +00:00
|
|
|
pkgdesc="A tool for enforcing descriptive commit messages and version/changelog management"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/commitizen-tools/commitizen"
|
|
|
|
license=('MIT')
|
|
|
|
depends=(
|
|
|
|
'python'
|
2021-08-14 02:09:50 +00:00
|
|
|
'python-questionary'
|
|
|
|
'python-decli'
|
2021-07-24 10:00:43 +00:00
|
|
|
'python-colorama'
|
|
|
|
'python-termcolor'
|
|
|
|
'python-packaging'
|
|
|
|
'python-tomlkit'
|
|
|
|
'python-jinja'
|
|
|
|
'python-pyaml'
|
|
|
|
'python-argcomplete'
|
|
|
|
'python-prompt_toolkit'
|
|
|
|
)
|
2021-09-27 23:54:24 +00:00
|
|
|
makedepends=(
|
|
|
|
'python-pip'
|
|
|
|
'python-build'
|
|
|
|
'python-poetry'
|
|
|
|
)
|
2021-07-24 10:00:43 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive//v$pkgver.tar.gz")
|
2021-09-27 22:12:12 +00:00
|
|
|
b2sums=('1e9781b9d599906d74cd171cbc80b93c63d9ffb6ace606baa07102e5e8b80b9f9db7c4dea6807cdce7535b0ea8382d3683307d252356b32578c9a6b9f07a2dd8')
|
2021-07-24 10:00:43 +00:00
|
|
|
|
2021-09-27 23:54:24 +00:00
|
|
|
prepare () {
|
|
|
|
cd "$pkgname-$pkgver"
|
2021-07-24 10:00:43 +00:00
|
|
|
|
2021-09-27 23:54:24 +00:00
|
|
|
# create completions
|
|
|
|
mkdir completions
|
|
|
|
register-python-argcomplete --shell bash cz > completions/bash
|
|
|
|
register-python-argcomplete --shell fish cz > completions/fish
|
|
|
|
}
|
2021-07-24 10:00:43 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$pkgname-$pkgver"
|
2021-09-27 23:54:24 +00:00
|
|
|
|
|
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
2021-07-24 10:00:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
|
|
|
PIP_CONFIG_FILE=/dev/null pip \
|
|
|
|
install \
|
|
|
|
--isolated \
|
|
|
|
--root="$pkgdir" \
|
|
|
|
--ignore-installed \
|
|
|
|
--no-deps \
|
|
|
|
dist/*.whl
|
2021-08-14 02:09:50 +00:00
|
|
|
|
2021-07-24 10:00:43 +00:00
|
|
|
# license
|
|
|
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
2021-09-27 23:54:24 +00:00
|
|
|
|
|
|
|
# shell completions
|
|
|
|
install -vDm644 completions/bash "$pkgdir/usr/share/bash-completion/completions/cz"
|
|
|
|
install -vDm644 completions/fish "$pkgdir/usr/share/fish/vendor_completions.d/cz.fish"
|
2021-07-24 10:00:43 +00:00
|
|
|
}
|