blob: 92ef8fc705d3562bf1f4151f6ec332506324b284 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Previous Maintainer: zebdo < zebdo [4T] posteo [D0T] ee >
# Current Maintainer: NatureCat < mail [at] naturec.at >
pkgname='hydrus-video-deduplicator-git'
_pkgname='hydrus-video-deduplicator'
pkgver=0.8.2.r0.gab4f217
pkgrel=1
pkgdesc='Hydrus Video Deduplicator finds potential duplicate videos through the Hydrus API'
arch=('any')
url="https://github.com/hydrusvideodeduplicator/hydrus-video-deduplicator"
license=('MIT')
provides=("hydrus-video-deduplicator=$pkgver")
conflicts=(hydrus-video-deduplicator)
depends=(
'python'
'python-platformdirs'
'python-rich'
'python-numpy'
'python-tqdm'
'python-dotenv'
'python-typer'
'python-sqlitedict'
'python-requests'
'python-psutil'
'python-pillow'
'python-av'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-hatchling'
'git'
'python-scikit-build-core'
'pybind11'
)
source=("${_pkgname}::git+https://github.com/hydrusvideodeduplicator/${_pkgname}.git"
hydrusvideodeduplicator
"hvdaccelerators::git+https://github.com/hydrusvideodeduplicator/hvdaccelerators.git")
sha256sums=('SKIP'
'504aa64d8bcbc5f37d22f798ce40cf0daf127c6835897887e0634fe8b0f2db7f'
'SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "hvdaccelerators"
msg 'Installing hvdaccelerators...'
python -m build --wheel --no-isolation
}
build() {
cd "${srcdir}/${_pkgname}"
msg 'Running python build...'
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pkgname}"
python -m installer --destdir="$pkgdir" dist/*.whl
# install license
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${_pkgname}/LICENSE
# install executables
install -d -m755 "${pkgdir}/usr/bin"
install -m755 ../hydrusvideodeduplicator "${pkgdir}/usr/bin/"
}
|