summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Arndt2018-08-14 22:19:58 +0200
committerChristopher Arndt2018-08-14 22:19:58 +0200
commitcbc567c2839903ceafc865108ca7c917530cfa36 (patch)
tree096b9317956e02af905c88f46149b564362d6904
parentccfba1bb20048c04b2cb54de89a59a3b4f15fea1 (diff)
downloadaur-cbc567c2839903ceafc865108ca7c917530cfa36.tar.gz
New upstream version 1.0
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r--.SRCINFO27
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD48
-rw-r--r--webbrowser-issue31014.diff13
4 files changed, 79 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ba706b65587..2af991d2ef4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,32 @@
-# Generated by mksrcinfo v8
-# Wed Jul 20 09:35:05 UTC 2016
pkgbase = mu-editor
- pkgdesc = A "micro" editor for MicroPython
- pkgver = 0.9.13
+ pkgdesc = A simple Python editor for beginner programmers
+ pkgver = 1.0.0
pkgrel = 1
epoch = 1
url = https://codewith.mu/
arch = any
license = GPL3
+ makedepends = gendesk
makedepends = python-setuptools
- depends = python
- depends = python-pyqt5
- depends = python-qscintilla-qt5
+ depends = python-appdirs
+ depends = python-gpiozero
+ depends = python-guizero
+ depends = python-matplotlib
+ depends = python-pigpio
+ depends = python-pgzero
depends = python-pycodestyle
depends = python-pyflakes
+ depends = python-pyqtchart
depends = python-pyserial
+ depends = python-qscintilla-qt5
+ depends = python-qtconsole
+ depends = python-requests
+ depends = python-semver
depends = qt5-serialport
- source = https://github.com/mu-editor/mu/archive/v0.9.13.tar.gz
- sha256sums = 68361c59c24d700339e41fcab0726883ffa20d3f0937dbfc89d2f08e2515cf41
+ source = mu-editor-1.0.0.tar.gz::https://github.com/mu-editor/mu/archive/v1.0.0.tar.gz
+ source = webbrowser-issue31014.diff
+ sha256sums = 63a69fab2cea892126802904332c85f009eea78e1af982dbdfb54a95051258eb
+ sha256sums = 0b2896a2e12c672c17088e3648505f0abb732650fa9e7c43a6146d5a2aa79c81
pkgname = mu-editor
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..0a99f3ae8cb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+src/
+pkg/
+mu-editor-*.tar.gz
+mu-editor-*.pkg.tar.xz
+.AURINFO
+
diff --git a/PKGBUILD b/PKGBUILD
index d1e766e2f6f..fddb9f2313f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,55 @@
+# Maintainer: webmeister <aur -dot- 20 -dot- webmeister -at- spamgourmet -dot- com>
+# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
+
pkgname=mu-editor
epoch=1
-pkgver=0.9.13
+pkgver=1.0.0
pkgrel=1
-pkgdesc='A "micro" editor for MicroPython'
+pkgdesc='A simple Python editor for beginner programmers'
arch=('any')
url='https://codewith.mu/'
license=('GPL3')
-depends=('python' 'python-pyqt5' 'python-qscintilla-qt5' 'python-pycodestyle' 'python-pyflakes' 'python-pyserial' 'qt5-serialport')
-makedepends=('python-setuptools')
-source=("https://github.com/mu-editor/mu/archive/v$pkgver.tar.gz")
-sha256sums=('68361c59c24d700339e41fcab0726883ffa20d3f0937dbfc89d2f08e2515cf41')
+depends=('python-appdirs' 'python-gpiozero' 'python-guizero' 'python-matplotlib' 'python-pigpio'
+ 'python-pgzero' 'python-pycodestyle' 'python-pyflakes' 'python-pyqtchart'
+ 'python-pyserial' 'python-qscintilla-qt5' 'python-qtconsole' 'python-requests'
+ 'python-semver' 'qt5-serialport')
+makedepends=('gendesk' 'python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mu-editor/mu/archive/v$pkgver.tar.gz"
+ 'webbrowser-issue31014.diff')
+sha256sums=('63a69fab2cea892126802904332c85f009eea78e1af982dbdfb54a95051258eb'
+ '0b2896a2e12c672c17088e3648505f0abb732650fa9e7c43a6146d5a2aa79c81')
+
+
+prepare() {
+ cd "$srcdir/mu-$pkgver"
+ # python-pyqt5 and python-qscintilla are not python-setuptools compatible
+ # the dependencies are handled by the package
+ sed -i -e "s/'pyqt5==[0-9.]*',//" -e "s/'qscintilla==[0-9.]*',//" setup.py
+ # Un-pin all other dependencies, so package doesn't break when a dependency is updated
+ sed -i -e 's/==/>=/g' setup.py
+ patch -Np0 -i "${srcdir}/webbrowser-issue31014.diff"
+}
+
+build() {
+ cd "$srcdir/mu-$pkgver"
+ python setup.py build
+ gendesk -f -n \
+ --pkgname=$pkgname \
+ "--pkgdesc=$pkgdesc" \
+ "--name=Mu" \
+ "--genericname=Code Editor" \
+ "--categories=Application;Development;TextEditor" \
+ --exec=$pkgname \
+ --terminal=false \
+ --startupnotify=true \
+ "--mimetypes=text/x-python;text/x-python3;"
+}
package() {
cd "$srcdir/mu-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 $pkgname.desktop -t "$pkgdir/usr/share/applications"
+ install -Dm644 conf/mu.codewith.editor.png "$pkgdir/usr/share/pixmaps/mu-editor.png"
}
# vim:set ts=2 sw=2 et:
diff --git a/webbrowser-issue31014.diff b/webbrowser-issue31014.diff
new file mode 100644
index 00000000000..15291cd80ce
--- /dev/null
+++ b/webbrowser-issue31014.diff
@@ -0,0 +1,13 @@
+--- mu/logic.py.orig 2018-08-14 22:14:04.663531208 +0200
++++ mu/logic.py 2018-08-14 22:14:25.616864697 +0200
+@@ -988,6 +988,10 @@
+ major_version = '.'.join(__version__.split('.')[:2])
+ url = 'https://codewith.mu/{}/help/{}'.format(language_code,
+ major_version)
++ # XXX: hacky workaround for https://bugs.python.org/issue31014
++ if 'BROWSER' in os.environ:
++ del os.environ['BROWSER']
++
+ webbrowser.open_new(url)
+
+ def quit(self, *args, **kwargs):