summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4395856c595e5497b86da0fc2f9da3ccc5efb83 (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
# Maintainer: DisableGraphics elchifladod@gmail.com
pkgbase="korai-git"
pkgname="korai-git"
pkgrel=1
pkgver=$(git ls-remote https://github.com/DisableGraphics/Korai.git | grep refs/heads/main | cut -f 1)
pkgdesc="Fast, reliable and feature-packed manga and comics reader (fresh from the git master branch)"
arch=("any")
conflicts=("korai")
url='https://github.com/DisableGraphics/Korai'
makedepends=("git" "imagemagick")
depends=("libarchive" "gtkmm3" "webkit2gtk" "vte3" "mangodl")
license=("GPL")
source=("git+https://github.com/DisableGraphics/Korai")
md5sums=("SKIP")
prepare()
{
	cd ${srcdir}
	# Since the git repo would be downloaded as "Korai" instead of "Korai-git",
	# we need to rename it to "Korai-git" so that the build() function can find it.
	if [ ! -d ${srcdir}/${pkgname^} ]; then
		ln -s Korai ${pkgname^}
	fi
}
build() {
	
	cd ${srcdir}/${pkgname^}
	meson setup build
	meson compile -C build
}
package() {

	install -Dm755 ${pkgname^}/build/korai "${pkgdir}/usr/bin/korai"
	install -Dm755 ${pkgname^}/build/libsavepos.so "${pkgdir}/usr/share/korai/korai-extensions/savepos.so"

	install -Dm755 ${pkgname^}/src/icon.png "${pkgdir}/usr/share/icons/korai.png"

	install -Dm755 ${pkgname^}/src/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" 
}