2023-04-26 14:57:46 +02:00
|
|
|
# Template file for 'hydrus'
|
|
|
|
pkgname=hydrus
|
2023-09-24 03:03:54 +02:00
|
|
|
version=544
|
2023-04-26 14:57:46 +02:00
|
|
|
revision=1
|
|
|
|
pycompile_dirs="usr/lib/hydrus"
|
|
|
|
hostmakedepends="python3"
|
2023-09-24 03:03:54 +02:00
|
|
|
depends="python3 libopencv-python3 python3-BeautifulSoup4 python3-yaml
|
|
|
|
python3-lz4 python3-numpy python3-Twisted python3-Pillow python3-pysocks
|
|
|
|
python3-psutil python3-send2trash python3-html5lib python3-requests
|
|
|
|
python3-QtPy noto-fonts-emoji python3-mpv python3-service_identity fmt ffmpeg
|
|
|
|
miniupnpc desktop-file-utils python3-cloudscraper python3-openssl
|
|
|
|
python3-packaging"
|
2023-04-26 14:57:46 +02:00
|
|
|
short_desc="Danbooru-like image tagging and searching system for the desktop"
|
|
|
|
maintainer="fanyx <fanyx+github@posteo.net>"
|
|
|
|
license="WTFPL"
|
|
|
|
homepage="https://hydrusnetwork.github.io/hydrus/"
|
|
|
|
distfiles="https://github.com/hydrusnetwork/hydrus/archive/refs/tags/v${version}.tar.gz"
|
2023-09-24 03:03:54 +02:00
|
|
|
checksum=7fa642c6139aaac97abaaad96a64c5e481b701c90c503129368b211c87af091c
|
2023-04-26 14:57:46 +02:00
|
|
|
python_version="3"
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vsed -i hydrus/core/HydrusConstants.py -e 's|^LICENSE_PATH.*|LICENSE_PATH = "/usr/share/licenses/hydrus/license.txt"|'
|
2023-09-24 03:03:54 +02:00
|
|
|
|
|
|
|
chmod +x hydrus_server.py hydrus_client.py
|
2023-04-26 14:57:46 +02:00
|
|
|
|
|
|
|
vmkdir usr/lib/hydrus
|
|
|
|
vcopy hydrus usr/lib/hydrus/
|
|
|
|
vcopy static usr/lib/hydrus/
|
2023-09-24 03:03:54 +02:00
|
|
|
|
|
|
|
vcopy hydrus_client.py usr/lib/hydrus/
|
|
|
|
vcopy hydrus_server.py usr/lib/hydrus/
|
2023-04-26 14:57:46 +02:00
|
|
|
|
|
|
|
vmkdir usr/bin
|
2023-09-24 03:03:54 +02:00
|
|
|
ln -sf ../lib/hydrus/hydrus_client.py ${DESTDIR}/usr/bin/hydrus-client
|
|
|
|
ln -sf ../lib/hydrus/hydrus_server.py ${DESTDIR}/usr/bin/hydrus-server
|
2023-04-26 14:57:46 +02:00
|
|
|
|
|
|
|
vmkdir usr/share/applications
|
2023-09-24 03:03:54 +02:00
|
|
|
ln -Tsf ../../lib/hydrus/static/hydrus.desktop \
|
|
|
|
${DESTDIR}/usr/share/applications/hydrus.desktop
|
2023-04-26 14:57:46 +02:00
|
|
|
|
|
|
|
vlicense COPYING
|
|
|
|
}
|