diff options
author | Donald Webster | 2019-07-11 10:53:26 -0700 |
---|---|---|
committer | Donald Webster | 2019-07-11 10:53:26 -0700 |
commit | 9a669cc3737315548024aa5ae5bf484700b57fdf (patch) | |
tree | 3cbd51916a4466d54583316735273cb970e5e456 | |
download | aur-9a669cc3737315548024aa5ae5bf484700b57fdf.tar.gz |
Initial version of python-plasmalights.
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 37 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8676b536f11d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-plasmalights + pkgdesc = Plasma LED driver, FX Sequencer and plugins for Pimoroni. + pkgver = 0.0.1 + pkgrel = 1 + url = https://github.com/pimoroni/plasma + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python2-setuptools + source = https://files.pythonhosted.org/packages/source/p/plasmalights/plasmalights-0.0.1.tar.gz + sha512sums = 55c45372f85dd4659356e25ab837e9f47bd20b456d657e5637452418e2e3a7b493e84fa75baf79ca38659f24ae02daac2d562f76c9842f3c74c407c487da0c5e + +pkgname = python-plasmalights + +pkgname = python2-plasmalights + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..97484cf0bb87 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/*.xz +/*.gz +/src/ +/pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..03746369bc40 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Donald Webster <fryfrog@gmail.com> + +pkgbase=python-plasmalights +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} +} + +build() { + cd "${srcdir}"/plasmalights-${pkgver} + python setup.py build + + cd "${srcdir}"/plasmalights-${pkgver}-py2 + python2 setup.py build +} + +package_python-plasmalights() { + cd plasmalights-${pkgver} + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-plasmalights() { + cd plasmalights-${pkgver}-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} |