-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
62 lines (54 loc) · 2.26 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: jmcb <[email protected]>
# Contributor: webmeister <aur -dot- 20 -dot- webmeister -at- spamgourmet -dot- com>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
pkgname=mu-editor
pkgver=1.1.1
pkgrel=1
pkgdesc='A simple Python editor for beginner programmers'
arch=('any')
url='https://codewith.mu/'
license=('GPL3')
# https://github.com/mu-editor/mu/blob/master/setup.py
depends=('python-pyqt5' 'qt5-serialport' 'python-qscintilla-qt5' 'python-pyqt5-chart'
'python-jupyter_client' 'python-ipykernel' 'python-ipython-genutils'
'python-qtconsole' 'python-adafruit-board-toolkit' 'python-pyserial' 'python-nudatus'
'flake8' 'python-click' 'python-black' 'python-platformdirs'
'python-semver' 'python-virtualenv' 'python-wheel' 'python-requests')
makedepends=('python-setuptools')
checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-random-order'
'python-pytest-timeout' 'python-coverage')
optdepends=('scrapy'
'python-beautifulsoup4')
source=("https://github.com/mu-editor/mu/archive/refs/tags/v$pkgver.tar.gz"
"$pkgname.desktop"
"$pkgname-$pkgver.patch"
"pyflakes-regex.patch::https://github.com/mu-editor/mu/commit/bc9a13bad85d07300bd6e4f2134d50f49404331d.patch")
sha256sums=('6ea06d09ba0ed15a2bdd87b62ad1c18a0b1edc7000956209720fcc4ad290458e'
'4a47b1f100a2a77018bae2422cee7bfe2cbea4c9412de1abf646c2fa7a63b62e'
'58a4c67009d11c0852628b8037ad11ecc0ff8f7b3661a6febf53efd4e118d29a'
'e6895f14c41265423c7a0d5f40ccd4b504d32962bc76cfbf14942429d0bcdf82')
_name=mu
prepare() {
cd "$_name-$pkgver"
# Unpin all dependencies, so package doesn't break when a dependency is updated
patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
# Upstream fix for some tests
patch -p1 -i "$srcdir/pyflakes-regex.patch"
}
build() {
cd "$_name-$pkgver"
python setup.py build
}
check() {
cd "$_name-$pkgver"
make -k check
}
package() {
# Desktop entry
install -Dm644 $pkgname.desktop -t "$pkgdir/usr/share/applications"
cd "$_name-$pkgver"
# Desktop icon
install -Dm644 conf/mu.codewith.editor.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
# Setuptools install
python setup.py install --root="$pkgdir/" --optimize=1
}