-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPKGBUILD
More file actions
35 lines (32 loc) · 818 Bytes
/
Copy pathPKGBUILD
File metadata and controls
35 lines (32 loc) · 818 Bytes
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.3.1
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
}