summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37f93f4ac84db292a519c4c3962e13bf0e0effa3 (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
# Maintainer: Nathan Robinson <nrobinson2000 at me dot com>

pkgname=neopo-git
_gitname="neopo"
pkgver=r283.cbe6548
pkgrel=1
pkgdesc="A lightweight solution for local Particle development."
arch=('x86_64' 'aarch64')
url="https://github.com/nrobinson2000/neopo"
license=('custom')
provides=('neopo')
source=('git+https://github.com/nrobinson2000/neopo.git')
md5sums=('SKIP')
makedepends=('python-setuptools')
depends=('python' 'vim' 'git' 'perl-archive-zip' 'libusb')

optdepends=('visual-studio-code-bin: Particle Workbench IDE')
optdepends_x86_64=('lib32-glibc: gcc-arm 5.3.1 support')
optdepends_aarch64=('dfu-util: flash devices with DFU'
                    'nodejs: support for particle-cli'
                    'openocd-git: support for debugging')

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd $_gitname
    python setup.py install --root="${pkgdir}/" --optimize=1
}