summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 544422779c4831a99b3290335b73b6ef20b24bf6 (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
# Maintainer: <https://aur.archlinux.org/account/zeauw>

_name=normflows
_reponame=normalizing-flows
pkgname=python-${_name}
pkgver=1.7.3
pkgrel=1
pkgdesc="A PyTorch Package for Normalizing Flows"
arch=('any')
url='https://github.com/VincentStimper/normalizing-flows'
license=('MIT')
depends=('python-numpy' 'python-pytorch')
makedepends=('python-setuptools')
source=("normalizing-flows-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('4a2c7405209360d25ea2a983d8a4c144aad1656ae85dcd9cfe834bd2abc6d918')

build() {
    cd ${_reponame}-${pkgver}
    python setup.py build
}

package() {
    cd ${_reponame}-${pkgver}
    python setup.py install --root="$pkgdir" --optimize=1
	install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}