summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Anderson2019-12-06 18:23:56 -0500
committerSean Anderson2019-12-06 18:23:56 -0500
commita85990f311e444182224c6cb39fb755493d674df (patch)
treef85af6b6da6e002f7db050f226214c757f090472
parentfec351921ddc16c68b4a5e6dcdaa4cf0c616e372 (diff)
downloadaur-a85990f311e444182224c6cb39fb755493d674df.tar.gz
Fix unnecessary dependency on enum34
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7f4e4ff58a0..64c5f11aa64 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-kflash
pkgdesc = A Python-based cross-platform Kendryte K210 UART ISP Utility
pkgver = 0.9.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/kendryte/kflash.py
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 00761a845c2..80fff49bb43 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
# Maintainer: Sean Anderson <seanga2@gmail.com>
pkgname=python-kflash
pkgver=0.9.1
-pkgrel=1
+pkgrel=2
pkgdesc="A Python-based cross-platform Kendryte K210 UART ISP Utility"
arch=(any)
url="https://github.com/kendryte/kflash.py"
@@ -26,6 +26,11 @@ install=
source=("https://github.com/kendryte/kflash.py/archive/v$pkgver.tar.gz")
sha512sums=('0bd05acc3b3118186757b293c3b8b95c4590f69c07cd6b6b3802795ba3406cb6cedf6dea57fdfaad89e8939f23dfc95f921572fa089fd3649a4153265b9bdf0b')
+prepare() {
+ cd "$srcdir/kflash.py-$pkgver"
+ sed -i "s/enum34\([^']*\)/enum34\1;python_version < \"3.4\"/g" setup.py
+}
+
package() {
cd "$srcdir/kflash.py-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1