summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Fink2019-07-04 14:24:51 +0300
committerChristoph Fink2019-07-04 14:24:51 +0300
commit582d1e4fcf018935398e3db364af80c62628f2b4 (patch)
tree6e528b788d50667319b1e521c43bbdb3c4c53cb6
downloadaur-582d1e4fcf018935398e3db364af80c62628f2b4.tar.gz
PyAV 6.2.0
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD61
2 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e9cf7c17180
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = python-av
+ pkgdesc = Pythonic bindings for FFmpeg
+ pkgver = 6.2.0
+ pkgrel = 0
+ url = https://docs.mikeboers.com/pyav/
+ arch = any
+ license = BSD
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ makedepends = cython
+ makedepends = cython2
+ depends = python
+ depends = python2
+ depends = ffmpeg
+ source = https://github.com/mikeboers/PyAV/archive/v6.2.0.tar.gz
+ sha256sums = 312dbcd3efa5bc060ce6003f2579a65b1e8c017473fb55755e8e148b87dcf696
+
+pkgname = python-av
+
+pkgname = python2-av
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e02c69d21e0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: peippo <christoph.fink@gmail.com>
+
+pkgbase=python-av
+pkgname=(
+ "python-av"
+ "python2-av"
+)
+pkgdesc="Pythonic bindings for FFmpeg"
+url="https://docs.mikeboers.com/pyav/"
+
+pkgver=6.2.0
+pkgrel=0
+
+arch=("any")
+license=("BSD")
+
+makedepends=(
+ "python-setuptools"
+ "python2-setuptools"
+ "cython"
+ "cython2"
+)
+depends=(
+ "python"
+ "python2"
+ "ffmpeg"
+)
+
+source=("https://github.com/mikeboers/PyAV/archive/v${pkgver}.tar.gz")
+sha256sums=("312dbcd3efa5bc060ce6003f2579a65b1e8c017473fb55755e8e148b87dcf696")
+
+prepare() {
+ cd "${srcdir}/PyAV-${pkgver}"
+}
+
+build() {
+ cp -r "${srcdir}/PyAV-${pkgver}" "${srcdir}/PyAV-${pkgver}-py2"
+
+ cd "${srcdir}"/PyAV-${pkgver}
+ python setup.py build
+
+ cd "${srcdir}"/PyAV-${pkgver}-py2
+ python2 setup.py build
+}
+
+package_python-av() {
+ cd "${srcdir}/PyAV-${pkgver}"
+ python setup.py install --root=${pkgdir} --optimize=1
+
+ install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-av/LICENSE"
+}
+
+package_python2-av() {
+ cd "${srcdir}/PyAV-${pkgver}-py2"
+ python2 setup.py install --root=${pkgdir} --optimize=1
+
+ # rename /usr/bin/pyav to avoid filename conflict
+ mv "${pkgdir}/usr/bin/pyav" "${pkgdir}/usr/bin/pyav2"
+
+ install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python2-av/LICENSE"
+}