summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD13
-rw-r--r--pip_requirement.patch12
3 files changed, 25 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2c99b7cc407..3b665ae3be1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-imageio-ffmpeg
pkgdesc = FFMPEG wrapper for Python
pkgver = 0.4.3
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/imageio/imageio-ffmpeg
arch = any
license = BSD
@@ -9,7 +9,9 @@ pkgbase = python-imageio-ffmpeg
depends = python
depends = ffmpeg
source = https://github.com/imageio/imageio-ffmpeg/archive/v0.4.3.tar.gz
+ source = pip_requirement.patch
sha256sums = 906680ae784d79972671c6a0adf5ce1604703506def9096d346f758a6a52bf6f
+ sha256sums = 596d2c8a2cdbe157fd9da8f440075c8827c68f3595ac6106af74d802730b83d1
pkgname = python-imageio-ffmpeg
diff --git a/PKGBUILD b/PKGBUILD
index da7c6efc08d..1e48a3f4fce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,15 +3,22 @@
pkgname=python-imageio-ffmpeg
pkgver=0.4.3
-pkgrel=1
+pkgrel=2
pkgdesc="FFMPEG wrapper for Python"
arch=("any")
license=("BSD")
url="https://github.com/imageio/imageio-ffmpeg"
depends=('python' 'ffmpeg')
makedepends=('python-setuptools')
-source=("https://github.com/imageio/imageio-ffmpeg/archive/v${pkgver}.tar.gz")
-sha256sums=('906680ae784d79972671c6a0adf5ce1604703506def9096d346f758a6a52bf6f')
+source=("https://github.com/imageio/imageio-ffmpeg/archive/v${pkgver}.tar.gz"
+ "pip_requirement.patch")
+sha256sums=('906680ae784d79972671c6a0adf5ce1604703506def9096d346f758a6a52bf6f'
+ '596d2c8a2cdbe157fd9da8f440075c8827c68f3595ac6106af74d802730b83d1')
+
+prepare() {
+ cd "imageio-ffmpeg-${pkgver}"
+ patch --forward --strip=1 --input="${srcdir}/pip_requirement.patch"
+}
build() {
cd "imageio-ffmpeg-${pkgver}"
diff --git a/pip_requirement.patch b/pip_requirement.patch
new file mode 100644
index 00000000000..a3fa1dc4cf7
--- /dev/null
+++ b/pip_requirement.patch
@@ -0,0 +1,12 @@
+diff --unified --recursive --text imageio-ffmpeg-0.4.3.orig/setup.py imageio-ffmpeg-0.4.3.new/setup.py
+--- imageio-ffmpeg-0.4.3.orig/setup.py 2021-01-04 17:18:12.000000000 +0100
++++ imageio-ffmpeg-0.4.3.new/setup.py 2021-02-13 09:51:58.744209490 +0100
+@@ -57,7 +57,7 @@
+ platforms="any",
+ provides=["imageio_ffmpeg"],
+ python_requires=">=3.4",
+- setup_requires=["pip>19"],
++ setup_requires=[],
+ install_requires=[],
+ packages=["imageio_ffmpeg"],
+ package_dir={"imageio_ffmpeg": "imageio_ffmpeg"},