diff options
author | Stephan Springer | 2024-03-11 20:32:17 +0100 |
---|---|---|
committer | Stephan Springer | 2024-03-11 20:34:15 +0100 |
commit | ee1d8e276f3ef8c065c729160011f146beb4110c (patch) | |
tree | 331d40975aa105bb1fd78c134bb4806bb3325723 | |
download | aur-python-kasa-git.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 32 |
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..496bef25b175 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = python-kasa-git + pkgdesc = Python library to control TPLink's smart home devices, Git version + pkgver = 0.6.2.1.r49.g7507837 + pkgrel = 1 + url = https://github.com/python-kasa/python-kasa + arch = any + license = GPL-3.0-only + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-poetry-core + depends = python-aiohttp + depends = python-asyncclick + depends = python-async-timeout + depends = python-pydantic + depends = python-yarl + provides = python-kasa + conflicts = python-kasa + source = git+https://github.com/python-kasa/python-kasa.git + b2sums = SKIP + +pkgname = python-kasa-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6e12e7253854 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +*.log +python-kasa-git-*.pkg.tar.* +python-kasa diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b7a655c85b0b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Stephan Springer <buzo+arch@Lini.de> +# Contributor: Fazlul Shahriar <fshahriar@gmail.com> + +_pkgname=python-kasa +pkgname="$_pkgname-git" +pkgver=0.6.2.1.r49.g7507837 +pkgrel=1 +pkgdesc="Python library to control TPLink's smart home devices, Git version" +arch=('any') +url='https://github.com/python-kasa/python-kasa' +license=('GPL-3.0-only') +depends=(python-aiohttp python-asyncclick python-async-timeout python-pydantic python-yarl) +makedepends=(git python-build python-installer python-wheel python-poetry-core) +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("git+https://github.com/$_pkgname/$_pkgname.git") +b2sums=('SKIP') + +pkgver() { + cd "$_pkgname" + git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$_pkgname" + python -m build --wheel --no-isolation +} + +package() { + cd "$_pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl +} |