AUR: Add zbar dependency, create temp_files directories
- Move zbar from optdepends to depends (required for Web UI QR reading) - Create temp_files directories for web and api frontends Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,6 +10,7 @@ license=('MIT')
|
|||||||
# Python 3.11-3.14 supported (uses jpeglib for modern Python compatibility)
|
# Python 3.11-3.14 supported (uses jpeglib for modern Python compatibility)
|
||||||
depends=(
|
depends=(
|
||||||
'python>=3.11'
|
'python>=3.11'
|
||||||
|
'zbar' # QR code reading for Web UI
|
||||||
)
|
)
|
||||||
makedepends=(
|
makedepends=(
|
||||||
'git'
|
'git'
|
||||||
@@ -17,9 +18,6 @@ makedepends=(
|
|||||||
'python-build'
|
'python-build'
|
||||||
'python-hatchling'
|
'python-hatchling'
|
||||||
)
|
)
|
||||||
optdepends=(
|
|
||||||
'zbar: QR code reading from webcam/images'
|
|
||||||
)
|
|
||||||
provides=('stegasoo')
|
provides=('stegasoo')
|
||||||
conflicts=('stegasoo')
|
conflicts=('stegasoo')
|
||||||
install=stegasoo-git.install
|
install=stegasoo-git.install
|
||||||
@@ -57,8 +55,10 @@ package() {
|
|||||||
local site_packages="$pkgdir/opt/stegasoo/venv/lib/python${pyver}/site-packages"
|
local site_packages="$pkgdir/opt/stegasoo/venv/lib/python${pyver}/site-packages"
|
||||||
cp -r frontends "$site_packages/"
|
cp -r frontends "$site_packages/"
|
||||||
|
|
||||||
# Create instance directory for Flask (writable by stegasoo user)
|
# Create writable directories for stegasoo user
|
||||||
install -dm755 "$pkgdir/opt/stegasoo/venv/var/app-instance"
|
install -dm755 "$pkgdir/opt/stegasoo/venv/var/app-instance"
|
||||||
|
install -dm755 "$site_packages/frontends/web/temp_files"
|
||||||
|
install -dm755 "$site_packages/frontends/api/temp_files"
|
||||||
|
|
||||||
# Fix shebangs - replace build-time paths with installed paths
|
# Fix shebangs - replace build-time paths with installed paths
|
||||||
find "$pkgdir/opt/stegasoo/venv/bin" -type f -exec \
|
find "$pkgdir/opt/stegasoo/venv/bin" -type f -exec \
|
||||||
|
|||||||
Reference in New Issue
Block a user