# Maintainer: JakobDev pkgname=jdappstreamedit pkgver=8.0 pkgrel=1 pkgdesc="A graphical Program to create and edit AppStream files" arch=("any") url="https://codeberg.org/JakobDev/jdAppStreamEdit" license=("GPL3") depends=("python" "python-pyqt6" "python-lxml" "python-requests" "appstream") makedepends=("python-setuptools" "python-build" "python-installer" "python-wheel") optdepends=("python-desktop-entry-lib: Create AppStream files from .desktop files" "appstream-glib: Validate with appstream-util") source=("${pkgname}-${pkgver}.tar.gz::https://codeberg.org/JakobDev/jdAppStreamEdit/archive/${pkgver}.tar.gz") sha256sums=("cee90dd96b8ebb72701e13f26020154c7b95d06a9e429c5ded1b9f57c3fd8e34") replaces=("jdappdataedit") build() { cd "jdappstreamedit" python -m build --wheel --no-isolation } package() { cd "jdappstreamedit" python -m installer --destdir "$pkgdir" dist/*.whl python install-unix-datafiles.py --prefix "${pkgdir}/usr" install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" }