summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b49a9945ca05ca7a9bba1e026d1dd0a3a22a775 (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
# Maintainer: Donald Webster <fryfrog@gmail.com>

pkgname=('python-plasmalights' 'python2-plasmalights')
_name=${pkgname#python-}
pkgver=0.0.1
pkgrel=1
pkgdesc="Plasma LED driver, FX Sequencer and plugins for Pimoroni."
arch=('any')
url="https://github.com/pimoroni/plasma"
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")

sha512sums=('55c45372f85dd4659356e25ab837e9f47bd20b456d657e5637452418e2e3a7b493e84fa75baf79ca38659f24ae02daac2d562f76c9842f3c74c407c487da0c5e')

prepare() {
  cp -a plasmalights-$pkgver{,-py2}
}

package_python-plasmalights() {
  depends=('python')
  cd plasmalights-${pkgver}
  python setup.py install --root="${pkgdir}" --optimize=1
}

package_python2-plasmalights() {
  depends=('python2')
  cd plasmalights-${pkgver}-py2
  python2 setup.py install --root="${pkgdir}" --optimize=1
}