summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8257790f4d5b5d531210043b3514c12b2930f88c (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
# Maintainer: Renato Lui Geh <renatogeh at gmail dot com>

pkgname=python-pasp
_pypiname="${pkgname/python-/}_plp"
pkgver=0.0.5.post1
pkgrel=1
pkgdesc="Probabilistic answer set programming"
arch=("any")
url="https://github.com/kamel-usp/dpasp"
license=("MIT")
depends=("python" "clingo" "python-lark-parser" "python-numpy" "python-numpy" "ncurses")
makedepends=("python-setuptools" "gcc" "python-numpy" "ncurses")
optdepends=("python-pytorch" "python-pytorch-cuda" "python-pytorch-opt" "python-pytorch-opt-cuda")
provides=("python-pasp")
conflicts=("python-pasp")
source=("https://files.pythonhosted.org/packages/source/${_pypiname::1}/${_pypiname}/${_pypiname}-${pkgver}.tar.gz")
sha256sums=("d4e5e690a9549942e1e0a30fb52b424c859f229bd91fa0cbfec25023dce2fea9")

build() {
  cd $srcdir/${_pypiname}-${pkgver}
  python3 setup.py build
}

package() {
  cd $srcdir/${_pypiname}-${pkgver}
  python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}