summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f4b17f753cb0e2d8541fd77e73e6ac984de5d7e (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
#
# Arch Linux PKGBUILD for iwinfo 
# This builds the latest release tag.
# git HEAD is also well tested.
#
# Maintainer: Gene C <arch@sapience.com>
# Contributor: 
# 
pkgname='iwinfo'
pkgdesc='Provide wifi information about capabilities and network(s)'
_gitname='iwinfo'

pkgver=2.2.0
pkgrel=1
url="https://github.com/gene-git/iwinfo"

arch=(x86_64)
license=(MIT)

install='iwinfo.install'

# To build docs uncomment sphinx/texlive
# Note libcap_ng >= 0.6 provides python bindings
depends=('python>3.10' 'libcap-ng>=0.6' 'python-capng')
makedepends=('git' 'python-build' 'python-wheel' 'python-installer' 'python-hatch' 'rsync'
             'python-sphinx' 'python-myst-parser' 'texlive-latexextra'
            )
_mkpkg_depends=('python>minor' 'libcap-ng>minor')

source=("git+https://github.com/gene-git/${_gitname}#tag=${pkgver}")
sha512sums=('SKIP')

build() {
    cd "${_gitname}"
    echo 'Building python'
    /usr/bin/rm -f dist/*
    /usr/bin/python -m build --wheel --no-isolation

    echo 'Building C'
    cd src/ambient
    make

    # To build Docs
    # uncomment below  and sphinx makedepends above
    # -------------
    # echo "Build docs"
    # cd ./Docs
    # make html
    # make latexpdf
}

package() {
    cd "${_gitname}"
    ./scripts/do-install ${pkgdir}
}
# vim:set ts=4 sts=4 sw=4 et: