summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 154e3241cae992d9739a86f97ed1b898f8618024 (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: Cyril <cyrwae[at]hotmail[dot]com>
pkgname=python-materialsdb
_name=python-materialsdb
pkgver=0.4.0
pkgrel=1
pkgdesc="A library to work with materialsdb.org open standard for building materials"
arch=('any')
url="https://github.com/CyrilWaechter/python-materialsdb"
license=('GPL-3.0-or-later')
depends=('python' 'python-lxml')
optdepends=(
    'ifcopenshell: for IFC conversion features'
)
makedepends=(
    python-build
    python-installer
    python-wheel
)
source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz)
sha256sums=('bb70515db1c7c1e97ed1caa3a934cdd8205cc515d6d38aedf983078c51212003')
build() {
    cd "${_name//-/_}-$pkgver"
    python -m build --wheel --no-isolation
}

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