# Maintainer: Thomas Jost pkgname=kcc pkgver=4.1 pkgrel=1 pkgdesc="Kindle Comic Converter converts comic files or folders to ePub or Panel View MOBI" arch=(any) url="https://github.com/ciromattia/kcc" license=('ISC') depends=('python' 'python-pillow' 'python-psutil' 'python-pyqt5' 'python-slugify') makedepends=('zip') optdepends=( 'kindlegen: for .mobi generation' 'unrar: for CBR/RAR support' 'p7zip: for 7z/CB7 support' ) source=(https://github.com/ciromattia/$pkgname/archive/$pkgver.tar.gz) md5sums=('3c3e988d20645a49048fdae254ab2f02') sha256sums=('c8376088cd0a78413c97518baf6b1ddf6d78a55f3da13c2352d5502afc207336') build() { cd "$srcdir/$pkgname-$pkgver" sh setup.sh [[ -d "$srcdir/build" ]] && rm -rf "$srcdir/build" mkdir "$srcdir/build" tar -xf KindleComicConverter_linux_$pkgver.tar.gz -C "$srcdir/build" } package() { cd "$srcdir/build" for bin in kcc kcc-c2e kcc-c2p; do install -Dm755 $bin $pkgdir/usr/bin/$bin done install -Dm644 kcc.png $pkgdir/usr/share/pixmaps/kcc.png install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt }