aports/orphan/hydrus/APKBUILD

49 lines
1.2 KiB
Plaintext

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer:
pkgname=hydrus
pkgver=429
pkgrel=0
pkgdesc="Danbooru-like image tagging and searching system for the desktop"
url="http://hydrusnetwork.github.io/hydrus/"
arch="noarch"
license="WTFPL"
depends="
python3
opencv
hdf5
py3-beautifulsoup4
py3-yaml
py3-lz4
py3-numpy
py3-twisted
py3-pillow
py3-pysocks
py3-psutil
py3-html5lib
py3-requests
py3-mpv
"
makedepends=""
source="
$pkgname-$pkgver.tar.gz::https://github.com/hydrusnetwork/hydrus/archive/v$pkgver.tar.gz
client-bin
"
options="!check"
builddir="$srcdir/hydrus-$pkgver"
build() {
python3 -OO -m compileall -fq .
}
package() {
mkdir -p "$pkgdir"/usr/lib/hydrus/bin
cp -r help hydrus static client.pyw server.py "$pkgdir"/usr/lib/hydrus
ln -s /usr/bin/ffmpeg "$pkgdir"/usr/lib/hydrus/bin/ffmpeg
install -Dm755 "$srcdir"/client-bin "$pkgdir"/usr/bin/hydrus-client
}
sha512sums="3213ddfa62319cd82a067b7d63f32e631a476bff01aad3f2bb7ef21348fc61254e648a63bcfd6ecace8efcc8c5892518cbc43246527ecace991ff18f307cc4c2 hydrus-429.tar.gz
e52105dcf6d769a4c451d20510d6f4a740db0b78cae67d86323b3448c1a3df861bb177bf5c8a52b7f02bd2240357de403fd3f32ddfdef77231013f5128af39ba client-bin"