blob: f67ee747aed92c70af9a897c1b8d127d97101ccb (
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
|
# Maintainer: Strykar <strykar@hotmail.com>
_gitpkgname=mktxp
pkgname="python-${_gitpkgname,,}"
pkgver=1.2.6
pkgrel=1
pkgdesc="Prometheus Exporter for Mikrotik RouterOS devices"
arch=('any')
url="https://github.com/akpw/mktxp"
license=('GPL-2.0-or-later')
depends=('python' 'python-prometheus_client' 'python-routeros-api' 'python-configobj' 'python-humanize' 'python-texttable' 'speedtest-cli' 'python-waitress' 'python-packaging')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("${_gitpkgname}-${pkgver}.tar.gz::https://github.com/akpw/mktxp/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('9a0db8ce223e03146b4940eb1906f5aa4d9d9c2979f2d8b876825ee7e9fd9c05')
prepare() {
cd "${_gitpkgname}-${pkgver}"
sed -i '25i\import re' mktxp/utils/utils.py
# sed -i "69s/'/r'/" mktxp/utils/utils.py
}
build() {
cd "${_gitpkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_gitpkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|