summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ff50260626dc3298b9f25d42b0a28ea8e2efdc0 (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
# Maintainer:  Misaka13514 <Misaka13514 at gmail dot com>

pkgname=python-largestinteriorrectangle
_name=${pkgname#python-}
_shortname=lir
pkgver=0.2.1
pkgrel=1
pkgdesc="Largest Interior/Inscribed Rectangle implementation in Python"
arch=('any')
url="https://github.com/OpenStitching/lir"
license=('Apache-2.0')
depends=('python-opencv' 'python-numba' 'python-numpy')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('72b27714d017a970f3a8da8a5796bde14bdeb354721e5400fbe1260abb9bbe07')

build() {
    cd "$_shortname-$pkgver"
    python -m build --wheel --no-isolation
}

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