summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b0e90777813bef649861cd6fc56cc32386d7c848 (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: Kyle Manna <kyle[at]kylemanna[d0t]com>
pkgname=python-pypemicro
_pkgname=${pkgname#python-}
pkgver=0.1.11
pkgrel=1
pkgdesc="Python interface for PEMicro debug probes precompiled libraries"
arch=('any')
url="https://github.com/nxpmicro/pypemicro"
license=('BSD-3-Cause')
makedepends=('python-build'
             'python-installer'
             'python-setuptools'
             'python-wheel'
            )
depends=('python')
source=(https://pypi.python.org/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
sha512sums=('022cfa0d5db24cac636f0e6d70d31fb3873023debf46636d5da3e3c109301c70ca26601847300d06ef29c9168033cc3deecb9268e38dfba18c99558049f4fad9')

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

package() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}