summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48a542591867e38845646feb30e83788c93aa591 (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
# Maintainer: taotieren <admin@taotieren.com>

pkgname=python-ffpyplayer
_name=${pkgname#python-}
pkgver=4.5.2
pkgrel=1
epoch=
pkgdesc="A cython implementation of an ffmpeg based player."
arch=('any')
url="https://pypi.org/project/${_name}"
license=('LGPL-3.0-only')
groups=()
provides=(${_name} ${pkgname})
conflicts=(${_name} ${pkgname})
depends=(
    #     python
    brotli
    cython
    fdkaac
    ffmpeg
    freetype2
    fribidi
    harfbuzz
    lame
    libpng
    libtheora
    libogg
    libvorbis
    libvpx
    sdl2
    sdl2_mixer
    nasm
    openssl
    opus
    x265
    xz
    yasm
    zlib
    #AUR
    libbass
)
makedepends=(
    cmake
    python-build
    python-installer
    python-wheel
    python-setuptools
    pkgconf)
optdepends=()
options=('!strip')
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
sha256sums=('f9affdc12ebba4649f116973b9e4e057d06761bc63758594a91ec85f168752fe')

build() {
    cd "${srcdir}/${_name}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/${_name}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}