upgpkg: python-commitizen 2.20.5-1

* New upstream release.
* Switch source to git commit from github tarball.
This commit is contained in:
George Rawlinson 2022-02-07 22:52:32 +00:00
parent 212d5cec74
commit 7e270ca05c
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -3,8 +3,8 @@
_pkgname=commitizen
pkgname=python-commitizen
pkgver=2.20.4
pkgrel=2
pkgver=2.20.5
pkgrel=1
pkgdesc="A tool for enforcing descriptive commit messages and version/changelog management"
arch=('any')
url="https://github.com/commitizen-tools/commitizen"
@ -23,18 +23,25 @@ depends=(
'python-prompt_toolkit'
)
makedepends=(
'git'
'python-install'
'python-build'
'python-poetry-core'
)
provides=('cz' 'git-cz')
conflicts=('nodejs-commitizen' 'commitizen-go')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('d649455d67065c0469f7a962e01383c1fce02424931efaf27211eef0ea65ac329e7286014958659b6642b92565320e3addb878c955248c1e1c89a5f611cd7fb6')
b2sums=('df4550788f4a35043cd862850c9391906c119cd4de0fe6625a86a6edd7b34b343cf515d106fc7e7e21f2c915aeb723cb3cbf7bfecca2073ef6e368c2c0d598f9')
_commit='27b4c54772ca81d7d6fd776e4a57edfb0de30d9b'
source=("$pkgname::git+$url.git#commit=$_commit")
b2sums=('SKIP')
prepare () {
cd "$_pkgname-$pkgver"
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
prepare() {
cd "$pkgname"
# create completions
mkdir completions
@ -43,7 +50,7 @@ prepare () {
}
build() {
cd "$_pkgname-$pkgver"
cd "$pkgname"
python -m build \
--wheel \
@ -52,7 +59,7 @@ build() {
}
package() {
cd "$_pkgname-$pkgver"
cd "$pkgname"
python -m install \
--optimize=1 \