summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b1d3998b67890c1ef661bd30133cdf16b5fbc55 (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
# Maintainer: Damian Höster <damian dot hoester at posteo dot de>

_pkgname=alabamaencoder
pkgname=${_pkgname}-git
pkgver=0.5.3.c338.b0109ee
pkgrel=1
pkgdesc='Video encoder framework with a focus on chunked target quality encoding'
arch=(x86_64)
url=https://github.com/kingstefan26/alabamaEncoder
license=(MIT)
depends=(
  python-scenedetect
  python-tqdm
  python-celery
  python-redis
  python-psutil
  python-opencv
  python-requests
  python-torf
  python-websockets
  python-scipy
  python-numpy
  python-scikit-image
  python-argparse-range
  python-matplotlib
)
makedepends=(
  git
  python-build
  python-installer
)
provides=($_pkgname)
conflicts=($_pkgname)
source=($_pkgname::git+$url.git)
sha256sums=(SKIP)

pkgver() {
  cd $_pkgname
  printf %s.c%s.%s \
    $(grep -oP 'version=\"\K[^\"]+' setup.py) \
    $(git rev-list --count HEAD) \
    $(git rev-parse --short HEAD)
}

build() {
  cd $_pkgname
  python -m build --wheel --no-isolation
}

package() {
  cd $_pkgname
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}