summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcrian2020-01-13 14:23:43 +0100
committercrian2020-01-13 14:23:43 +0100
commit6eef8d6c4ff9279f72c1834c87e480ac9cfbc4ee (patch)
tree9616c7596e3a695d6ef79d9192411e65e2693c22
downloadaur-python-power.tar.gz
Initial upload
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD25
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1d823f10547
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python-power
+ pkgdesc = Python module to get power and battery status.
+ pkgver = 1.4
+ pkgrel = 1
+ url = https://github.com/Kentzo/Power
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ depends = python
+ source = https://github.com/Kentzo/Power/archive/v1.4.tar.gz
+ sha256sums = SKIP
+
+pkgname = python-power
+ depends = python
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..676da6a9785
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: crian <crian84 at gmail dot com>
+
+pkgname=python-power
+_module="Power"
+pkgver=1.4
+pkgrel=1
+pkgdesc="Python module to get power and battery status."
+arch=('any')
+url="https://github.com/Kentzo/Power"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://github.com/Kentzo/Power/archive/v${pkgver}.tar.gz")
+sha256sums=('SKIP')
+
+build() {
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ depends+=()
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}