summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Fink2020-01-21 18:50:02 +0200
committerChristoph Fink2020-01-21 18:50:02 +0200
commit4da48a3c4ad4f5a6150b1fcc0bc6a3d089166030 (patch)
treea9cde39f7096e18922ca4ff8845e74110c65a3bc
parentfbd504d4196db0089aa1ede4b5f3ccd287f08829 (diff)
downloadaur-4da48a3c4ad4f5a6150b1fcc0bc6a3d089166030.tar.gz
dropping python2 support
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD38
2 files changed, 6 insertions, 43 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 06cc92b5052..284463aac10 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,16 @@
pkgbase = python-av
pkgdesc = Pythonic bindings for FFmpeg
pkgver = 6.2.0
- pkgrel = 1
+ pkgrel = 3
url = https://docs.mikeboers.com/pyav/
arch = any
license = BSD
makedepends = python-setuptools
- makedepends = python2-setuptools
makedepends = cython
- makedepends = cython2
+ depends = python
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 b29c08c3416..3b3a7c85c84 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,21 @@
# Maintainer: peippo <christoph.fink@gmail.com>
-pkgbase=python-av
-pkgname=(
- "python-av"
- "python2-av"
-)
+pkgname="python-av"
pkgdesc="Pythonic bindings for FFmpeg"
url="https://docs.mikeboers.com/pyav/"
pkgver=6.2.0
-pkgrel=1
+pkgrel=3
arch=("any")
license=("BSD")
makedepends=(
"python-setuptools"
- "python2-setuptools"
"cython"
- "cython2"
)
depends=(
+ "python"
"ffmpeg"
)
@@ -32,38 +27,13 @@ prepare() {
}
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() {
- depends=(
- "python"
- "ffmpeg"
- )
-
+package() {
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() {
- depends=(
- "python2"
- "ffmpeg"
- )
-
- 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"
-}