blob: ad4fb57e97f9dc711fb94a1d150f74b403cffaec (
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
|
# Maintainer: Alexander Grooff <alexandergrooff@gmail.com>
pkgname=nginx-static-analysis-git
pkgver=0.2.9
pkgrel=2
pkgdesc="Static analysis tool for Nginx configuration files"
url="https://github.com/AlexanderGrooff/nginx-static-analysis"
arch=("any")
license=("MIT")
groups=()
depends=("python" "python-loguru")
makedepends=("git" "python-build" "python-installer" "python-wheel")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("git+${url}")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
grep -oP '(?<=version=")[^"]+' setup.py
}
build() {
cd "$srcdir/${pkgname%-git}"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|