summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce5b336c9157880b172bcf6cb2b765d84a58d68e (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
# Maintainer: Butui Hu <hot123tea123@gmail.com>

_pkgname=numpymaxflow
pkgname=python-numpymaxflow
pkgver=0.0.7
pkgrel=1
pkgdesc='Numpy-based implementation of Max-flow/Min-cut (graphcut) for 2D/3D data'
arch=('x86_64')
url='https://github.com/masadcv/numpymaxflow'
license=('BSD-3-Clause')
depends=(
  gcc-libs
  glibc
  python-numpy
)
makedepends=(
  python-build
  python-installer
  python-setuptools
  python-wheel
)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/masadcv/numpymaxflow/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('eeb6afca38053be4aba9597e96b199d62e84e1caebcb0ebde71becc7f6c37b22ec5703ce7c822828b4217113dcbf14c024a8dd8436707795e98bd1545d0fe510')

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

package() {
  cd "${_pkgname}-${pkgver}"
  python -m installer --destdir="${pkgdir}" dist/*.whl
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et: