blob: b725ee49f6d5110790c409411b7ef2a42e967041 (
plain)
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
|
# Maintainer: Pablo Hardouin <pablohardouin02 at gmail dot com>
_pkgname="MrPython"
pkgname="mrpython"
pkgver="5.1.3beta"
pkgrel=1
pkgdesc="A simplified programming environment for Python (3.x) - based on IDLE"
arch=("x86_64")
url="https://github.com/nohtyprm/MrPython"
license=('PSF')
groups=()
depends=('python' 'tk')
makedepends=()
provides=("$pkgname")
conflicts=("$pkgname")
source=("${pkgname}::https://github.com/nohtyprm/MrPython/archive/refs/tags/v${pkgver}.zip")
md5sums=('SKIP')
prepare() {
cd "${srcdir}/${_pkgname}-${pkgver}"
sed -i 's/\.\/mrpython\/Application\.py/\/opt\/mrpython\/Application\.py/' mrpython.sh
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
# Licence
install -Dm644 LICENSE.python "${pkgdir}/usr/share/licenses/$pkgname/LICENSE.python"
# Python sources
mkdir -p "${pkgdir}/opt"
cp -r mrpython/ "${pkgdir}/opt/mrpython/"
chmod 755 "${pkgdir}/opt/mrpython"
# Executable
install -Dm755 mrpython.sh "${pkgdir}/usr/bin/mrpython"
# Desktop entry
mkdir -p "${pkgdir}/usr/share/applications/"
echo "[Desktop Entry]
Type=Application
Name=MrPython
Exec=python /opt/mrpython/Application.py
Comment=MrPython
Categories=Development;IDE;
Terminal=false" >> "${pkgdir}/usr/share/applications/mrpython.desktop"
chmod 666 "${pkgdir}/usr/share/applications/mrpython.desktop"
}
|