diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -9,14 +9,14 @@ # Maintainer: Sean Anderson <seanga2@gmail.com> pkgname=python-kflash pkgver=0.9.1 -pkgrel=1 +pkgrel=3 pkgdesc="A Python-based cross-platform Kendryte K210 UART ISP Utility" arch=(any) url="https://github.com/kendryte/kflash.py" license=('MIT') groups=() depends=('python' 'python-pyserial' 'python-pyelftools') -makedepends=() +makedepends=('python-setuptools') provides=() conflicts=() replaces=() @@ -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 |