summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b515c5b44d334212af95da434f3cdbea4ce1d0db (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
# Maintainer: anekos <anekos@snca.net>

_pkgname=arturo
pkgname=${_pkgname}-git
pkgver=20191021
pkgrel=1
pkgdesc="Command line toolkit for working with Arduino hardware."
arch=('any')
url="https://github.com/scottdarch/Arturo"
license=('MIT')
depends=('arduino-avr-core' 'python2-glob2-git' 'picocom' 'python2-jinja' 'python2-configobj' 'python2-pyserial')
makedepends=('python2' 'git')
provides=(${_pkgname})
conflicts=(${_pkgname})
source=('git+https://github.com/scottdarch/Arturo.git')
md5sums=('SKIP')

pkgver() {
  cd ${srcdir}/Arturo
  git log -1 --format='%cd' --date=short | tr -d -- '-'
}

package() {
  cd ${srcdir}/Arturo

  python2 setup.py install --root="$pkgdir/" --optimize=1

  mkdir -p "$pkgdir/usr/share/licenses/arturo"
  cp MIT-LICENSE.txt "$pkgdir/usr/share/licenses/arturo/LICENSE"
  # ln -s /usr/share/arduino/hardware/arduino/avr /usr/local/share/arduino/hardware/arduino
}