summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e4df5404830aa6588a53dabc9f9abaf6f9dd03d (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
pkgname=python-robotarium-git
pkgver=r19.1ed474a
pkgrel=1
pkgdesc="A Python-based simulator for the Robotarium."
url="https://github.com/robotarium/robotarium_python_simulator"
arch=('x86_64')
license=('GPL3')
depends=('python' 'python-cvxopt' 'python-scipy' 'python-numpy' 'python-matplotlib')
makedepends=('python-setuptools')
source=('git+https://github.com/robotarium/robotarium_python_simulator.git')
sha256sums=('SKIP')
provides=('python-robotarium')
conflicts=('python-robotarium')

pkgver() {
  cd "$srcdir"/robotarium_python_simulator

  # Pull the version tag from the file
  printf "%s" "$(grep -R "__version__ =" autopep8.py | awk -F\' '{print $2}')"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir"/robotarium_python_simulator
  python setup.py build
}

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