add packages

This commit is contained in:
2025-12-11 11:36:15 -08:00
parent 0ce343308b
commit 0903b599a3
11 changed files with 276 additions and 0 deletions

20
python-meikiocr/.SRCINFO Normal file
View File

@@ -0,0 +1,20 @@
pkgbase = python-meikiocr
pkgdesc = High-speed, high-accuracy, local OCR for Japanese video games
pkgver = 0.1.2
pkgrel = 1
url = https://github.com/rtr46/meikiocr
arch = any
license = Apache-2.0
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
makedepends = python-setuptools
depends = python-numpy
depends = python-opencv
depends = python-huggingface-hub
depends = onnxruntime
optdepends = onnxruntime-cuda: GPU acceleration
source = meikiocr-0.1.2.tar.gz::https://files.pythonhosted.org/packages/source/m/meikiocr/meikiocr-0.1.2.tar.gz
sha256sums = 612ab61ac7a741cd4ca96c961c5917cf21f393dc0d71d7ab2dbd677ae9b18f39
pkgname = python-meikiocr

100
python-meikiocr/.gitignore vendored Normal file
View File

@@ -0,0 +1,100 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# Jupyter Notebook
.ipynb_checkpoints
# Virtual environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyderworkspace
# VSCode settings
.vscode/
# PyCharm settings
.idea/
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Ruff
.ruff_cache/

36
python-meikiocr/PKGBUILD Normal file
View File

@@ -0,0 +1,36 @@
_pkgname=meikiocr
pkgname=python-${_pkgname}
pkgver=0.1.2
pkgrel=1
pkgdesc="High-speed, high-accuracy, local OCR for Japanese video games"
arch=('any')
url="https://github.com/rtr46/${_pkgname}"
license=('Apache-2.0')
depends=(
'python-numpy'
'python-opencv'
'python-huggingface-hub'
'onnxruntime'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
optdepends=(
'onnxruntime-cuda: GPU acceleration'
)
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/m/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('612ab61ac7a741cd4ca96c961c5917cf21f393dc0d71d7ab2dbd677ae9b18f39')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

Binary file not shown.