diff options
author | emersion | 2018-12-12 14:02:51 +0100 |
---|---|---|
committer | emersion | 2018-12-12 14:02:51 +0100 |
commit | 4c9fb9a5bf8b96723fdb76d236b3c2b94a57c446 (patch) | |
tree | ac401b337af70059da81805a637aedd3c6643254 | |
download | aur-python-robotarium-git.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5f6317666c6f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-robotarium-git + pkgdesc = A Python-based simulator for the Robotarium. + pkgver = r19.1ed474a + pkgrel = 1 + url = https://github.com/robotarium/robotarium_python_simulator + arch = x86_64 + license = GPL3 + makedepends = python-setuptools + depends = python + depends = python-cvxopt + depends = python-scipy + depends = python-numpy + depends = python-matplotlib + provides = python-robotarium + conflicts = python-robotarium + source = git+https://github.com/robotarium/robotarium_python_simulator.git + sha256sums = SKIP + +pkgname = python-robotarium-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0e4df5404830 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} + |