aports/testing/git-cola/APKBUILD
2025-02-23 20:01:29 +00:00

41 lines
1.1 KiB
Text

# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Hannes Braun <hannes@hannesbraun.net>
pkgname=git-cola
pkgver=4.12.0
pkgrel=0
pkgdesc="GUI application for git built on Python & Qt"
url="https://git-cola.github.io"
arch="noarch !armhf !riscv64" # py3-qt6
license="GPL-2.0-or-later"
depends="python3 py3-qt6 py3-qtpy"
makedepends="py3-setuptools py3-setuptools_scm py3-gpep517 py3-installer py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-doc $pkgname-pyc"
source="git-cola-$pkgver.tar.gz::https://github.com/git-cola/git-cola/archive/v$pkgver.tar.gz"
# testsuite hangs after a while.
options="!check"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 1
}
check() {
pytest
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/git_cola*.whl
make DESTDIR="$pkgdir" prefix=/usr \
install-desktop-files \
install-icons \
install-htmldocs \
install-metainfo
}
sha512sums="
110db6c9a2cdc70eab942aa4965704081fc2d920a9a9a188a91f5a9e76927f02d9c8a4141f6921cb708ea00f676319820f9403e32da6798c0118ab87d388c8c2 git-cola-4.12.0.tar.gz
"