summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2446bfe200a90cca575d5849e09d3a80df8fbd67 (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
# Maintainer: Aditya Singh (https://github.com/s-adi-dev)
# Original Author: ushiboy (https://github.com/ushiboy)
# This PKGBUILD builds the python-nmcli package from the fork repository:
# https://github.com/s-adi-dev/nmcli
# Original author's GitHub repository:
# https://github.com/ushiboy/nmcli

pkgname=python-nmcli
pkgver=1.5.0
pkgrel=1
pkgdesc="Python wrapper around NetworkManager's nmcli command (by ushiboy)"
arch=('any')
url="https://github.com/s-adi-dev/nmcli"
license=('MIT')
depends=('python')
makedepends=('git' 'python-setuptools' 'python-build' 'python-wheel' 'python-installer')
source=("nmcli-src::git+https://github.com/s-adi-dev/nmcli.git")
sha256sums=('SKIP')

build() {
    cd "$srcdir/nmcli-src"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/nmcli-src"
    python -m installer --destdir="$pkgdir" dist/*.whl
}