# Maintainer: Berrit Birkner <aur at bbirkner.de>

pkgname=python-apkinspector
_pkgname=apkInspector
pkgver=1.3.6
pkgrel=2
pkgdesc="A tool to decode and manipulate android apks"
arch=('any')
url="https://github.com/erev0s/${_pkgname}"
license=('Apache-2.0')
makedepends=(
	'python-build'
	'python-wheel'
	'python-installer'
	'python-poetry-core'
)
depends=(
	'python'
)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('b03e94e2d3dc4eaf658947e997fe55392cd1a7e5e55e8d9d0fbac179b7516edf')

build() {
	cd "${_pkgname}-${pkgver}/"
	python -m build --wheel --no-isolation
}

package() {
	cd "${_pkgname}-${pkgver}/"
	python -m installer --destdir="${pkgdir}" dist/*.whl
}
