diff options
author | Gavin Lloyd | 2020-11-18 15:53:09 -0800 |
---|---|---|
committer | Gavin Lloyd | 2020-11-18 15:53:09 -0800 |
commit | 456288d8ff648cc52a1e7315508cb599f3753253 (patch) | |
tree | 4e1321f8d88a988bb3cbd4d5f52fe9745f6f68c0 | |
download | aur-456288d8ff648cc52a1e7315508cb599f3753253.tar.gz |
Init commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..97dac060b4ac --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = busylight + pkgdesc = Control USB connected presence lights from multiple vendors + pkgver = 0.7.6 + pkgrel = 0 + url = https://github.com/JnyJny/busylight + arch = i686 + arch = x86_64 + license = Apache + makedepends = python-setuptools + makedepends = python-poetry + depends = python + depends = python-bitvector-for-humans + depends = python-click + depends = python-hidapi + depends = python-typer + depends = python-webcolors + source = https://github.com/JnyJny/busylight/archive/0.7.6.tar.gz + sha256sums = 68168c0347820e8ae139baa29819388584a6fa8e4de45077efd3baeea58c46e1 + +pkgname = busylight + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..3aac19a6b292 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg +src +*.pkg.tar* +*.tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b69d370f041f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Gavin Lloyd <gavinhungry@gmail.com> + +_pkgname=busylight-for-humans +pkgname=busylight +pkgver=0.7.6 +pkgrel=0 +pkgdesc='Control USB connected presence lights from multiple vendors' +arch=('i686' 'x86_64') +url='https://github.com/JnyJny/busylight' +license=('Apache') +makedepends=('python-setuptools' 'python-poetry') +depends=( + 'python' 'python-bitvector-for-humans' 'python-click' 'python-hidapi' + 'python-typer' 'python-webcolors' +) +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=('68168c0347820e8ae139baa29819388584a6fa8e4de45077efd3baeea58c46e1') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + poetry build + tar xf dist/${_pkgname}-${pkgver}.tar.gz + cd "${_pkgname}-${pkgver}" + + python setup.py build +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/${_pkgname}-${pkgver}" + + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +} |