summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cefb0468931ed069d4fcd0e7df9d9b6baa15029d (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
36
37
38
39
40
41
# Maintainer: Renato Lui Geh <renatogeh at gmail dot com>

pkgname=python-pypsdd
_gitname="pypsdd"
pkgver=0.1
pkgrel=1
pkgdesc="A Python 3 port of the Probabilistic Sentential Decision Diagrams (PSDD) Package PyPSDD."
arch=('any')
url="https://github.com/art-ai/pypsdd"
license=('Apache 2.0')
depends=('python' 'python-future')
optdepends=('pypy3')
makedepends=('git')
source=("git+https://github.com/RenatoGeh/pypsdd")
sha256sums=('SKIP')

# Testing purposes
#prepare() {
#  cd "$_gitname" || exit 1
#  git checkout futurize
#  git pull
#}

build() {
  cd "$_gitname" || exit 1
  python3 setup.py build
}

package() {
  cd "$_gitname" || exit 1
  python3 setup.py install --root="$pkgdir" --optimize=2 --skip-build
}

check() {
  cd "${_gitname}/${_gitname}/tests" || exit 1
  for f in *.py; do
    echo "Testing $f..."
    python3 "$f" || (echo "Test $f failed!" && exit 2)
  done
}