add packages
This commit is contained in:
16
GameSentenceMiner/.SRCINFO
Normal file
16
GameSentenceMiner/.SRCINFO
Normal file
@@ -0,0 +1,16 @@
|
||||
pkgbase = gamesentenceminer-bin
|
||||
pkgdesc = GameSentenceMiner AppImage for game-to-Anki flashcard automation
|
||||
pkgver = 1.15.8
|
||||
pkgrel = 1
|
||||
url = https://github.com/bpwhelan/GameSentenceMiner
|
||||
arch = x86_64
|
||||
license = GPL3
|
||||
depends = fuse2
|
||||
provides = gamesentenceminer
|
||||
conflicts = gamesentenceminer
|
||||
noextract = GameSentenceMiner-1.15.8.AppImage
|
||||
options = !strip
|
||||
source = GameSentenceMiner-1.15.8.AppImage::https://github.com/bpwhelan/GameSentenceMiner/releases/download/v1.15.8/GameSentenceMiner-1.15.8.AppImage
|
||||
sha256sums = 630ba749a24bb096e4e3b4766cb2dbb67a7722f3f190a014168fde9dca8b565c
|
||||
|
||||
pkgname = gamesentenceminer-bin
|
||||
41
GameSentenceMiner/PKGBUILD
Normal file
41
GameSentenceMiner/PKGBUILD
Normal file
@@ -0,0 +1,41 @@
|
||||
# Maintainer: sudacode
|
||||
|
||||
pkgname=gamesentenceminer-bin
|
||||
pkgver=1.15.8
|
||||
pkgrel=1
|
||||
pkgdesc="GameSentenceMiner AppImage for game-to-Anki flashcard automation"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/bpwhelan/GameSentenceMiner"
|
||||
license=('GPL3')
|
||||
depends=('fuse2')
|
||||
provides=('gamesentenceminer')
|
||||
conflicts=('gamesentenceminer')
|
||||
source=(
|
||||
"GameSentenceMiner-${pkgver}.AppImage::https://github.com/bpwhelan/GameSentenceMiner/releases/download/v${pkgver}/GameSentenceMiner-${pkgver}.AppImage"
|
||||
"gamesentenceminer.desktop"
|
||||
"gamesentenceminer.png::https://raw.githubusercontent.com/bpwhelan/GameSentenceMiner/main/assets/gsm.png"
|
||||
"gamesentenceminer.service"
|
||||
)
|
||||
noextract=("GameSentenceMiner-${pkgver}.AppImage")
|
||||
sha256sums=(
|
||||
'630ba749a24bb096e4e3b4766cb2dbb67a7722f3f190a014168fde9dca8b565c'
|
||||
'd1849baa6414fcce90733572344ea6f59061d4e96dcb5a6c61357f184b5c04af'
|
||||
'f4644bf2e5d40209144a5bdb9bd3eff68da9a0555119d5bab36b9bfc37940fd3'
|
||||
'2b5ea49e65da39cb94163a1b16d64089f93917448d386877568209a0d37579c9'
|
||||
)
|
||||
options=(!strip)
|
||||
|
||||
package() {
|
||||
install -d "${pkgdir}/usr/bin"
|
||||
install -Dm755 "${srcdir}/GameSentenceMiner-${pkgver}.AppImage" \
|
||||
"${pkgdir}/opt/gamesentenceminer/GameSentenceMiner.AppImage"
|
||||
ln -sf "/opt/gamesentenceminer/GameSentenceMiner.AppImage" \
|
||||
"${pkgdir}/usr/bin/gamesentenceminer"
|
||||
install -Dm644 "${srcdir}/gamesentenceminer.desktop" \
|
||||
"${pkgdir}/usr/share/applications/gamesentenceminer.desktop"
|
||||
install -Dm644 "${srcdir}/gamesentenceminer.png" \
|
||||
"${pkgdir}/usr/share/pixmaps/gamesentenceminer.png"
|
||||
install -Dm644 "${srcdir}/gamesentenceminer.service" \
|
||||
"${pkgdir}/usr/lib/systemd/user/gamesentenceminer.service"
|
||||
}
|
||||
|
||||
10
GameSentenceMiner/gamesentenceminer.desktop
Normal file
10
GameSentenceMiner/gamesentenceminer.desktop
Normal file
@@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Name=GameSentenceMiner
|
||||
Comment=Game-to-Anki flashcard automation
|
||||
Exec=gamesentenceminer %U
|
||||
Icon=gamesentenceminer
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Education;Utility;
|
||||
StartupNotify=false
|
||||
|
||||
14
GameSentenceMiner/gamesentenceminer.service
Normal file
14
GameSentenceMiner/gamesentenceminer.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=GameSentenceMiner (AppImage)
|
||||
After=network.target graphical-session.target
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/gamesentenceminer
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
20
python-meikiocr/.SRCINFO
Normal file
20
python-meikiocr/.SRCINFO
Normal 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
100
python-meikiocr/.gitignore
vendored
Normal 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
36
python-meikiocr/PKGBUILD
Normal 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"
|
||||
}
|
||||
BIN
python-meikiocr/meikiocr-0.1.2.tar.gz
Normal file
BIN
python-meikiocr/meikiocr-0.1.2.tar.gz
Normal file
Binary file not shown.
15
python-owocr/.SRCINFO
Normal file
15
python-owocr/.SRCINFO
Normal file
@@ -0,0 +1,15 @@
|
||||
pkgbase = python-owocr
|
||||
pkgdesc = OwOCR is a command-line text recognition tool that continuously scans for images and performs OCR (Optical Character Recognition) on them. Its main focus is Japanese, but it works for many other languages.
|
||||
pkgver = 1.20.3
|
||||
pkgrel = 1
|
||||
url = https://pypi.org/project/owocr/
|
||||
arch = any
|
||||
license = GPL-3.0
|
||||
makedepends = python-build
|
||||
makedepends = python-wheel
|
||||
makedepends = python-installer
|
||||
depends = python>=3.11
|
||||
source = https://files.pythonhosted.org/packages/source/o/owocr/owocr-1.20.3.tar.gz
|
||||
sha256sums = 2dc2c82481c2c57afea18622ac97a96be844181a49a21a532649335f0b627053
|
||||
|
||||
pkgname = python-owocr
|
||||
1
python-owocr/.gitignore
vendored
Normal file
1
python-owocr/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
owocr*
|
||||
23
python-owocr/PKGBUILD
Normal file
23
python-owocr/PKGBUILD
Normal file
@@ -0,0 +1,23 @@
|
||||
# sudacode <suda@sudacode.com>
|
||||
pkgname=python-owocr
|
||||
_name=${pkgname#python-}
|
||||
pkgver=1.20.3
|
||||
pkgrel=1
|
||||
pkgdesc="OwOCR is a command-line text recognition tool that continuously scans for images and performs OCR (Optical Character Recognition) on them. Its main focus is Japanese, but it works for many other languages."
|
||||
arch=('any')
|
||||
url="https://pypi.org/project/owocr/"
|
||||
license=('GPL-3.0')
|
||||
depends=('python>=3.11')
|
||||
makedepends=('python-build' 'python-wheel' 'python-installer')
|
||||
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz")
|
||||
sha256sums=('2dc2c82481c2c57afea18622ac97a96be844181a49a21a532649335f0b627053')
|
||||
|
||||
build() {
|
||||
cd "${_name/-/_}-$pkgver"
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${_name//-/_}-$pkgver"
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
}
|
||||
Reference in New Issue
Block a user