summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Fink2020-01-21 18:34:01 +0200
committerChristoph Fink2020-01-21 18:34:01 +0200
commitfbd504d4196db0089aa1ede4b5f3ccd287f08829 (patch)
tree580a384b3c80fcfacea0d0a08fe287786eef5971
parent582d1e4fcf018935398e3db364af80c62628f2b4 (diff)
downloadaur-fbd504d4196db0089aa1ede4b5f3ccd287f08829.tar.gz
split depends()
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD18
2 files changed, 18 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e9cf7c17180..06cc92b5052 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-av
pkgdesc = Pythonic bindings for FFmpeg
pkgver = 6.2.0
- pkgrel = 0
+ pkgrel = 1
url = https://docs.mikeboers.com/pyav/
arch = any
license = BSD
@@ -9,13 +9,15 @@ pkgbase = python-av
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
+ depends = python
+ depends = ffmpeg
pkgname = python2-av
+ depends = python2
+ depends = ffmpeg
diff --git a/PKGBUILD b/PKGBUILD
index e02c69d21e0..b29c08c3416 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ pkgdesc="Pythonic bindings for FFmpeg"
url="https://docs.mikeboers.com/pyav/"
pkgver=6.2.0
-pkgrel=0
+pkgrel=1
arch=("any")
license=("BSD")
@@ -21,8 +21,6 @@ makedepends=(
"cython2"
)
depends=(
- "python"
- "python2"
"ffmpeg"
)
@@ -44,15 +42,25 @@ build() {
}
package_python-av() {
+ depends=(
+ "python"
+ "ffmpeg"
+ )
+
cd "${srcdir}/PyAV-${pkgver}"
- python setup.py install --root=${pkgdir} --optimize=1
+ python setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-av/LICENSE"
}
package_python2-av() {
+ depends=(
+ "python2"
+ "ffmpeg"
+ )
+
cd "${srcdir}/PyAV-${pkgver}-py2"
- python2 setup.py install --root=${pkgdir} --optimize=1
+ 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"