blob: 89b478a6798d880d4912f74bfc848df123d1e0c5 (
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
50
51
|
# Contributor: DisableGraphics elchifladod@gmail.com
pkgbase="korai"
pkgname="korai"
pkgrel=2
pkgver=0.2.1
pkgdesc="Fast, reliable and feature-packed manga and comics reader"
arch=("any")
url='https://github.com/DisableGraphics/Korai'
makedepends=("git" "imagemagick")
depends=("libarchive" "gtkmm3" "webkit2gtk" "vte3" "mangodl")
conflicts=("korai-git")
license=("GPL")
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('2f40b9bbddc3aca79fd6c4c34e78a68eea89bb9fb289f4324636829a0586bb9e8ee15db89fb5faba3ac98b2a2dbf4b474a0b7e93eb24a9da2354af1e3f688964')
prepare() {
cd ${srcdir}/${pkgname^}-${pkgver}
make -j$(nproc)
}
package() {
install -Dm755 ${pkgname^}-${pkgver}/build/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 ${pkgname^}-${pkgver}/build/korai-extensions/savepos.so "${pkgdir}/home/${USER}/.local/share/korai-extensions/savepos.so"
echo "Converting icon..."
convert ${pkgname^}-${pkgver}/src/icon.xpm ${pkgname^}-${pkgver}/src/icon.png
install -Dm755 ${pkgname^}-${pkgver}/src/icon.png "${pkgdir}/usr/share/icons/korai.png"
echo "Adding application menu..."
if [ -f "${pkgname^}-${pkgver}/korai.desktop" ]; then
rm -f "${pkgname^}-${pkgver}/korai.desktop"
fi
touch "${pkgname^}-${pkgver}/korai.desktop"
echo "#!/usr/bin/env xdg-open
[Desktop Entry]
Version=Git
Type=Application
Name=Korai
Comment=\"Fast, reliable and feature-packed manga/comic book reader\"
Exec=/usr/bin/korai
Icon=/usr/share/icons/korai.png
Path=/home/$USER/.local/share
Terminal=false
StartupNotify=false
Categories=Network;" >> "${pkgname^}-${pkgver}/korai.desktop"
install -Dm755 ${pkgname^}-${pkgver}/korai.desktop "${pkgdir}/usr/share/applications/korai.desktop"
pip install --upgrade mangadex-downloader
echo "Korai requires mangadex-downloader (only available using pip) to download MangaDex manga directly"
}
|