blob: 3bb101724fbcb94ae67f7bc8984df23b65610369 (
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
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: David Roheim <david.roheim@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
pkgname=rpmlint
pkgver=2.5.0
pkgrel=3
pkgdesc="A tool for checking common errors in rpm packages"
arch=(any)
url="https://github.com/rpm-software-management/rpmlint"
license=(GPL-2.0-only)
depends=(
binutils
cpio
gzip
python
python-magic
python-packaging
python-pybeam
python-pyxdg
python-tomli
python-tomli-w
python-zstandard
rpm-tools
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(
appstream-glib
checkbashisms
dash
desktop-file-utils
python-pyenchant
python-pytest
)
optdepends=(
'appstream-glib: for AppData file validation'
'checkbashisms: for checking bashisms'
'dash: for checking bashisms'
'desktop-file-utils: for checking desktop entries'
'python-pyenchant: for spell checking'
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('a9276782bd9ebca2337ae61a498d4d444e0dce003447409b2339b4cce67b6762')
_archive="$pkgname-$pkgver"
build() {
cd "$_archive"
python -m build --wheel --no-isolation
}
check() {
cd "$_archive"
script --return --command 'pytest --override-ini="addopts="'
}
package() {
cd "$_archive"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|