blob: 20535db3dacb849cda9668724a15f1fe36680f30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>
# Contributor: Paul Weingardt <paulweingardt@web.de>
# Contributor: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: TDY <tdy@gmx.com>
pkgname=git-cola-git
_pkgname=git-cola
pkgver=4.8.0.r0.gdbd543db
pkgrel=1
pkgdesc="The highly caffeinated Git GUI"
arch=('any')
url="https://git-cola.github.io"
license=('GPL-2.0-or-later')
depends=(
'git'
'hicolor-icon-theme'
'python-numpy'
'python-polib'
'python-pyqt6'
'python-qtpy'
)
makedepends=(
'python-build'
'python-installer'
'python-rst.linker'
'python-setuptools-scm'
'python-sphinx'
'python-sphinx-furo'
'python-sphinx_rtd_theme'
'python-wheel'
'rsync'
)
checkdepends=(
'appstream'
#'appstream-glib'
'desktop-file-utils'
'garden-tools'
'python-pytest'
)
optdepends=(
'python-pygments: syntax highlighting'
'python-pyinotify: file system change monitoring'
'python-send2trash: enables "Send to Trash" functionality.'
'tk: to use the built-in ssh-askpass handler'
)
provides=(
'git-cola'
)
conflicts=(
'git-cola'
)
source=(
"${_pkgname}::git+https://github.com/git-cola/git-cola.git"
'0001-Unvendorize-polib.py.patch'
)
sha256sums=('SKIP'
'e9bf4b8cb0b71cbde53e4be1befa513b3bebb23b3f3bcb8b5447111a24714c6f')
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/^v//;s/-/.r/;s/-/./'
}
prepare() {
cd "$_pkgname"
# Remove vendorized polib.py
git apply -3 ../0001-Unvendorize-polib.py.patch
rm cola/polib.py
}
build() {
cd "$_pkgname"
python -m build --wheel --no-isolation
# sphinx (or, rather, rtd.linker) races against itself, leading to a spurious ENOENT
make -j1 prefix=/usr doc
}
check() {
cd "$_pkgname"
desktop-file-validate share/applications/*.desktop
#appstream-util validate-relax --nonet share/metainfo/*.appdata.xml
appstreamcli validate --no-net share/metainfo/*.appdata.xml ||:
# Run the unit tests
GIT_CONFIG_NOSYSTEM=true LC_ALL="C.UTF-8" make test V=2
}
package() {
cd "$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
# `make -C docs` is used instead of `make install-doc` to specify
# `-o man -o html` (do not remake docs, we just built them)
#make install-doc
make -C docs -o man -o html prefix=/usr DESTDIR="$pkgdir" install
install -Dm644 "contrib/_${_pkgname}" -t "$pkgdir/usr/share/zsh/site-functions/"
install -Dm644 "contrib/${_pkgname}-completion.bash" \
"$pkgdir/usr/share/bash-completion/completions/${_pkgname}"
}
|