aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-batinfo/APKBUILD
blob: 9abb7f77ab6a8e7578ef5e0e900259940ffd282f (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-batinfo
_pkgname=batinfo
pkgver=0.4.2
pkgrel=3
pkgdesc="Simple Python3 lib to retreive battery information"
options="!check" # No testsuite
url="https://github.com/nicolargo/batinfo"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-batinfo" # Backwards compatibility
provides="py-batinfo=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/share/doc
}
sha512sums="c45232cdd79d2d10d814019bbfc167ef54c3d970c74320a5a007d3b603e62fbdfeaf53f88074cf53a7865293181707e2e63e5a565219c094a77be2adc5d53876  batinfo-0.4.2.tar.gz"