summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f3846cb81b33f30e37aed253c5cdb9976a7e94a (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
# Maintainer: Cyril <cyrwae[at]hotmail[dot]com>
pkgname=python-fcl-git
pkgver=0.6.1
pkgrel=1
pkgdesc="Python bindings for the Flexible Collision Library"
arch=('x86_64')
url="https://github.com/BerkeleyAutomation/python-fcl"
license=('GPL')
groups=()
depends=('fcl')
makedepends=('python-setuptools')
optdepends=()
provides=('python-fcl')
conflicts=('python-fcl')
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}::git+https://github.com/CyrilWaechter/python-fcl")
noextract=()
md5sums=('SKIP')

build() {
	cd $pkgname
    python setup.py build
}

check(){
  cd $pkgname
  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
  PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" pytest
}

package() {
	cd $pkgname
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'README.md'
}