diff options
author | Modelmat | 2020-01-06 14:05:40 +1100 |
---|---|---|
committer | Modelmat | 2020-01-06 14:05:40 +1100 |
commit | 6935e22978c9841ec22d445bc84a2f2787b2262b (patch) | |
tree | e9adec9f893b7020cb3034266a15ef96547754a1 | |
download | aur-6935e22978c9841ec22d445bc84a2f2787b2262b.tar.gz |
Adds python-frccontrol-git
-rw-r--r-- | .SRCINFO | 13 | ||||
-rwxr-xr-x | .gitignore | 6 | ||||
-rwxr-xr-x | PKGBUILD | 28 |
3 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5975676cf05b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = python-frccontrol-git + pkgdesc = Provides wrappers around Python Control for making development of state-space models for the FIRST Robotics Competition easier. + pkgver = 2020.21 + pkgrel = 1 + url = https://github.com/calcmogul/frccontrol.git + arch = x86_64 + license = BSD + depends = python-control + source = python-frccontrol-git::git+https://github.com/calcmogul/frccontrol.git + md5sums = SKIP + +pkgname = python-frccontrol-git + diff --git a/.gitignore b/.gitignore new file mode 100755 index 000000000000..f20e8d17a47b --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +src +pkg +*.tar.xz +*.tar.gz +*.tar +python-frccontrol-git/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..5fca9b490504 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Modelmat <modelmat@outlook.com.au> + +pkgname=python-frccontrol-git +pkgver=2020.21 +pkgrel=1 +pkgdesc="Provides wrappers around Python Control for making development of state-space models for the FIRST Robotics Competition easier." +arch=("x86_64") +url="https://github.com/calcmogul/frccontrol.git" +license=("BSD") +depends=("python-control") +source=(${pkgname}::"git+https://github.com/calcmogul/frccontrol.git") +md5sums=("SKIP") + +pkgver() { + cd "${srcdir}/${pkgname}" + year=$(date +%Y) + echo $year.$(git rev-list --count --after="master@{$(($year - 1))-01-01}" master) +} + +build() { + cd "${srcdir}/${pkgname}" + python setup.py build +} + +package() { + cd "${srcdir}/${pkgname}" + python setup.py install --root="${pkgdir}" --skip-build +} |