blob: 5fca9b49050471721094dcd38659a46ad4f1bad2 (
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
|
# 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
}
|