# Maintainer: schuay # Contributor: Ray Powell pkgname=mcomix pkgver=3.0.0 pkgrel=1 pkgdesc="A user-friendly, customizable image viewer specifically designed to handle comic books" arch=('any') url="https://sourceforge.net/p/mcomix/wiki/Home/" license=('GPL') depends=('gtk3' 'python-cairo' 'python-gobject' 'python-pillow') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') optdepends=( 'lhasa: for lha compressed comics' 'libunrar: for rar compressed comics' 'p7zip: for 7z compressed comics' 'python-pymupdf: for PDF comics' 'unrar: for rar compressed comics' 'unzip: for zip compressed comics' ) source=( "https://downloads.sourceforge.net/project/${pkgname}/MComix-${pkgver}/${pkgname}-${pkgver}.tar.gz" ) sha256sums=('2270c43d75e2878f64e4c886d5b013125c42894b364594d5ec979154c4dea004') build() { cd "${pkgname}-${pkgver}" python -m build --wheel --no-isolation } package() { cd "${pkgname}-${pkgver}" python -m installer --destdir="$pkgdir" dist/*.whl # application meta files are no longer copied automatically by the installation process cp -a share "$pkgdir/usr" }