mirror of
https://github.com/archlinux/aur.git
synced 2026-01-27 20:28:31 +01:00
Update to 0.1.0-4: fix dependencies and add systemd service
- Add missing Python dependencies (numpy, pillow, pynput, etc.) - Use python-installer to avoid filesystem conflicts - Update SHA256 for latest v0.1.0 release - Improve installation reliability
This commit is contained in:
parent
b268ebee4b
commit
cd906d86f1
2 changed files with 24 additions and 14 deletions
15
.SRCINFO
15
.SRCINFO
|
|
@ -1,15 +1,22 @@
|
|||
pkgbase = sniptext
|
||||
pkgdesc = Screen capture OCR tool with adaptive ensemble recognition
|
||||
pkgver = 0.1.0
|
||||
pkgrel = 1
|
||||
pkgrel = 4
|
||||
url = https://github.com/dkorbelainen/sniptext
|
||||
arch = any
|
||||
license = MIT
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-wheel
|
||||
depends = python>=3.8
|
||||
depends = python-pip
|
||||
depends = python
|
||||
depends = python-numpy
|
||||
depends = python-pillow
|
||||
depends = python-pynput
|
||||
depends = python-pyperclip
|
||||
depends = python-pyyaml
|
||||
depends = python-loguru
|
||||
depends = python-scikit-learn
|
||||
depends = python-pytesseract
|
||||
depends = tesseract
|
||||
depends = tesseract-data-eng
|
||||
optdepends = tesseract-data-rus: Russian language support
|
||||
|
|
@ -24,6 +31,6 @@ pkgbase = sniptext
|
|||
optdepends = maim: X11 screenshot tool
|
||||
optdepends = xclip: X11 clipboard support
|
||||
source = sniptext-0.1.0.tar.gz::https://github.com/dkorbelainen/sniptext/archive/v0.1.0.tar.gz
|
||||
sha256sums = f1fab596e2c95f10ada2bf79733316f1001b2fa3876b432c25a133f777d2d427
|
||||
sha256sums = 16f0727c7715ad10fd4678af65849ccb7729d87f1d3a756627b1c88329c865ee
|
||||
|
||||
pkgname = sniptext
|
||||
|
|
|
|||
23
PKGBUILD
23
PKGBUILD
|
|
@ -1,14 +1,21 @@
|
|||
# Maintainer: Daniel Korbelainen <officialpand@gmail.com>
|
||||
pkgname=sniptext
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgrel=4
|
||||
pkgdesc="Screen capture OCR tool with adaptive ensemble recognition"
|
||||
arch=('any')
|
||||
url="https://github.com/dkorbelainen/sniptext"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
'python>=3.8'
|
||||
'python-pip'
|
||||
'python'
|
||||
'python-numpy'
|
||||
'python-pillow'
|
||||
'python-pynput'
|
||||
'python-pyperclip'
|
||||
'python-pyyaml'
|
||||
'python-loguru'
|
||||
'python-scikit-learn'
|
||||
'python-pytesseract'
|
||||
'tesseract'
|
||||
'tesseract-data-eng'
|
||||
)
|
||||
|
|
@ -27,7 +34,7 @@ optdepends=(
|
|||
)
|
||||
makedepends=('python-build' 'python-installer' 'python-wheel')
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('f1fab596e2c95f10ada2bf79733316f1001b2fa3876b432c25a133f777d2d427')
|
||||
sha256sums=('16f0727c7715ad10fd4678af65849ccb7729d87f1d3a756627b1c88329c865ee')
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
|
|
@ -37,12 +44,8 @@ build() {
|
|||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
# Install using pip
|
||||
PIP_CONFIG_FILE=/dev/null pip install --isolated \
|
||||
--root="$pkgdir" \
|
||||
--ignore-installed \
|
||||
--no-deps \
|
||||
dist/*.whl
|
||||
# Install only our wheel; rely on system/python deps from depends()
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
|
||||
# Install license
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue