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