summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55db4cba261af24d08f63cd390c4b86cd562a221 (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
# Maintainer: arielzn <arielzn at riseup dot net>

pkgbase='python-archspec'
pkgname=('python-archspec')
_module='archspec'
pkgver='0.2.5'
pkgrel=3
pkgdesc="A library for detecting, labeling, and reasoning about microarchitectures"
url="https://github.com/archspec/archspec"
depends=('python')
makedepends=(
  'python-build'
  'python-installer'
  'python-poetry-core'
)
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('5bec8dfc5366ff299071200466dc9572d56db4e43abca3c66bdd62bc2b731a2a')


build() {
    cd "${srcdir}/${_module}-${pkgver}"
    python -m build -wn
}

package() {
    cd "${srcdir}/${_module}-${pkgver}"
    python -m installer -d "$pkgdir" dist/*.whl
}