Compare commits

...

No commits in common. "main" and "thonny-git" have entirely different histories.

3 changed files with 62 additions and 3 deletions

21
.SRCINFO Normal file
View file

@ -0,0 +1,21 @@
pkgbase = thonny-git
pkgdesc = Python IDE for beginners.
pkgver = r3936.c1da4858
pkgrel = 1
url = http://thonny.org/
arch = any
license = MIT
depends = openssl
depends = python
depends = python-beautifulsoup4
depends = python-jedi
depends = tcl
depends = tk
depends = python-distro
depends = python-pip
provides = thonny
conflicts = thonny
source = git+https://github.com/thonny/thonny.git
sha256sums = SKIP
pkgname = thonny-git

41
PKGBUILD Normal file
View file

@ -0,0 +1,41 @@
pkgname=thonny-git
pkgver=r3936.c1da4858
pkgrel=1
pkgdesc="Python IDE for beginners."
arch=('any')
url="http://thonny.org/"
license=('MIT')
conflicts=("thonny")
provides=("thonny")
depends=('openssl' 'python' 'python-beautifulsoup4' 'python-jedi' 'tcl' 'tk' 'python-distro' 'python-pip')
source=("git+https://github.com/thonny/thonny.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/thonny"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir"
pip3 install --prefix="$pkgdir/usr" --force -I tkinterhtml
pyversion="$(ls $pkgdir/usr/lib | xargs)"
install -Dm 755 "thonny/packaging/linux/thonny" "$pkgdir/usr/bin/thonny"
sed -i "s/python3.7/$pyversion/g" "$pkgdir/usr/bin/thonny"
sed -i 's|$target_dir|/usr|' "thonny/packaging/linux/Thonny.desktop"
install -Dm 644 "thonny/packaging/linux/Thonny.desktop" \
"$pkgdir/usr/share/applications/thonny.desktop"
install -Dm 644 "thonny/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Install.py currently does not allow for setting root for creating a package
# Files must by copied manually for now in section below.
install -d 644 "$pkgdir/usr/lib/$pyversion/site-packages/thonny"
cp -dr --no-preserve=ownership "thonny/thonny" \
"$pkgdir/usr/lib/$pyversion/site-packages"
}

View file

@ -1,3 +0,0 @@
# aur.git
This is a experimental mirror of the aur.git repository backing [the AUR](https://aur.archlinux.org).