blob: c21be5c5593b106c696b4274ac55d14b33b47c2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Thomas Jost <schnouki@schnouki.net>
pkgname=kcc
pkgver=5.1.3
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>=3.5' 'python-pillow>=3.2.0' 'python-psutil>=4.1.0' 'python-pyqt5' 'python-raven>=5.13.0' 'python-slugify>=1.2.0')
makedepends=('zip')
optdepends=(
'kindlegen>=2.9: for .mobi generation'
'unrar: for CBR/RAR support'
'p7zip: for 7z/CB7 support'
)
source=(https://github.com/ciromattia/$pkgname/archive/$pkgver.tar.gz)
md5sums=('dce25170dfb62e8376a87bc92df448f4')
sha256sums=('f7de8eb2e34891fd034faef6b8aeba01652ea312a9de2677ac93d359ad8f4be1')
build() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py build_binary --pyz
# Patch desktop file
sed -i 's#kindlecomicconverter/comic2ebook#pixmaps/kcc#' other/linux/kindlecomicconverter.desktop
# Madness...
mkdir -p dist/"${pkgver}"
cd dist/"${pkgver}"
tar xf ../KindleComicConverter_linux_"${pkgver}".tar.gz
}
package() {
cd "$srcdir/$pkgname-$pkgver/"
# Desktop file
install -Dm644 other/linux/kindlecomicconverter.desktop "$pkgdir/usr/share/applications/kindlecomicconverter.desktop"
# "Built" files
cd "dist/${pkgver}"
for f in kcc kcc-c2e kcc-c2p; do
install -Dm755 "$f" "$pkgdir/usr/bin/$f"
done
install -Dm644 kcc.png "$pkgdir/usr/share/pixmaps/kcc.png"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/docs/${pkgname}/README.md"
}
|