summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c3c959601969cb7cbfb4d7f60bf8af3b60c173a (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
# Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=python-pyffmpeg
_py_name=${pkgname#python-}
pkgver=2.1.0
pkgrel=2
pkgdesc='FFmpeg wrapper for Python'
arch=(any)
url="https://github.com/deuteronomy-works/$_py_name"
license=(Apache)
depends=(ffmpeg
         python)
makedepends=(python-{build,installer,wheel}
             python-setuptools)
_archive="$_py_name-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_py_name::1}/$_py_name/$_archive.tar.gz")
sha256sums=('a2daabbebc11b3293670316e073abca6a0d70df53149cb3566e72d052176b86e')

build() {
	cd "$_archive"
	python -m build -wn
}

package() {
	cd "$_archive"
	python -m installer -d "$pkgdir" dist/*.whl
}