Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community/py3-batinfo: drop py2 #11086

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions community/py-batinfo/APKBUILD

This file was deleted.

28 changes: 28 additions & 0 deletions community/py3-batinfo/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Contributor: Fabian Affolter <[email protected]>
# Maintainer: Fabian Affolter <[email protected]>
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"