commit 114a98777d1b8b708fd4daeb802113c22ccf4430 Author: sudacode Date: Wed Mar 12 00:00:05 2025 -0700 initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..1723914 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-jimaku-dl + pkgdesc = A Python package to download Japanese subtitles for anime from Jimaku.cc + pkgver = 0.1.2 + pkgrel = 2 + url = https://github.com/ksyasuda/jimaku-dl + arch = any + license = GPL3 + makedepends = python-setuptools + makedepends = python-wheel + makedepends = python-build + makedepends = python-installer + depends = python + depends = fzf + optdepends = mpv: for playback functionality + source = python-jimaku-dl-0.1.2.tar.gz::https://github.com/ksyasuda/jimaku-dl/archive/refs/tags/v0.1.2.tar.gz + sha256sums = 50283abb662c03a9e1956355d4f900d562a7751df74bccf1315feaa38ad4e9f0 + +pkgname = python-jimaku-dl diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..edb1bd8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Your Name +pkgname=python-manga-ocr +_pkgname=manga_ocr +pkgver=0.1.14 +pkgrel=1 +pkgdesc="A tool for extracting text from manga images using OCR" +arch=('any') +url="https://github.com/kha-white/manga-ocr" +license=('MIT') +depends=('python') +makedepends=('python-pip' 'python-installer' 'python-wheel') +depends=( + 'python' + 'python-fire' + 'python-fugashi' + 'python-jaconv' + 'python-loguru' + 'python-numpy' + 'python-pillow' + 'python-pyperclip' + 'python-pytorch' + 'python-transformers' + 'python-unidic-lite' +) +optdepends=('python-pytorch: GPU acceleration') +source=("https://github.com/kha-white/manga_ocr/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('f7d73bbf482cbefb6f91ff3c628a3131d6c7dc863612539fe5d03a4b7d640643') + +build() { + cd "${_pkgname//_/-}-$pkgver" + python -m pip wheel . --no-deps --wheel-dir dist +} + +package() { + cd "${_pkgname//_/-}-$pkgver" + python -m pip install --no-deps --root="$pkgdir" --prefix=/usr --ignore-installed . + # Move the assets folder to the Python module directory + install -dm755 "$pkgdir/usr/lib/python3.13/site-packages/manga_ocr/" + cp -r assets "$pkgdir/usr/lib/python3.13/site-packages/manga_ocr/" + cp "$pkgdir/usr/lib/python3.13/site-packages/manga_ocr/assets/examples/00.jpg" "$pkgdir/usr/lib/python3.13/site-packages/manga_ocr/assets/example.jpg" +}