blob: 8983ab9c6eba8db3be9294ef4f22c248e6af46fa (
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
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
pkgname=gitlint
pkgver=0.17.0
pkgrel=4
pkgdesc='Git commit message linter'
arch=('any')
url='https://github.com/jorisroovers/gitlint'
license=('MIT')
options=(!emptydirs)
depends=(
'python'
'python-arrow'
'python-click'
'python-sh'
)
makedepends=('python-setuptools')
checkdepends=(
'git'
'python-pytest'
)
source=(
"$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
"0001-Unset-EDITOR-env-var-in-test_run_hook_edit.patch"
"gitlint.install"
)
sha256sums=(
'1c1e895aea22b1ded131a9dc81dd1f37fb064a9f3af7421debd1606ca646196a'
'ec117041e4ba8a3a46d27e169982129dd08e455501de676d873fce91b1d934cd'
'c160f586b02894afc3535de1f9c843b60bfc24d2b56cc00ab26472dc296123c4'
)
install=gitlint.install
prepare() {
cd "$pkgname-$pkgver"
patch --forward --strip=1 --input="${srcdir}/0001-Unset-EDITOR-env-var-in-test_run_hook_edit.patch"
}
build() {
cd $pkgname-$pkgver
cd gitlint-core
python setup.py build
}
check() {
cd "$pkgname-$pkgver"
cd gitlint-core
python -m pytest
}
package() {
cd "$pkgname-$pkgver"
cd gitlint-core
export PYTHONHASHSEED=0
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|