Subject: Archlinux and PythonCard
Posted By: mad_finn Post Date: 1/14/2006 6:02:50 PM
Hi,

If you're using Archlinux (which I recommend) there currently isn't a package for PythonCard, but if you want to install it (not quite sure all the file locations are correct, as I've only started to experiment with it, and it doesn't install menu items yet), here's a PKGBUILD which you can use - download it and use it as follows:
As a normal user
mkdir ~/pythoncardbuild
cp PKGBUILD ~/pythoncardbuild
cd ~/pythoncardbuild
makepkg

Then as root
pacman -A /home/username/pythoncardbuild/pythoncard-0.8.1-1.pkg.tar.gz

To run codeEditor simply type codeEditor in a terminal window as a normal user.
Here is the PKGBUILD

# Contributor : Jani Talikka <jani.talikka@gmail.com>
pkgname=pythoncard
pkgver=0.8.1
pkgrel=1
pkgdesc="PythonCard is a GUI construction kit for building cross-platform desktop applications on Windows, Mac OS X, and Linux, using the Python language."
url="http://pythoncard.sourceforge.net/"
license=""
depends=('python>=2.3' 'wxpython')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://dl.sourceforge.net/sourceforge/$pkgname/PythonCard-$pkgver.tar.gz)
md5sums=('8e5a88cc70b183d41907d46fadb69819')

build() {
  cd $startdir/src/PythonCard-$pkgver
  python setup.py install --root=$startdir/pkg
  rm $startdir/pkg/usr/bin/install-pythoncard.py
  echo "#!/bin/bash" > $startdir/pkg/usr/bin/codeEditor
  echo "python /usr/lib/python2.4/site-packages/PythonCard/tools/codeEditor/codeEditor.py" >> $startdir/pkg/usr/bin/codeEditor
  chmod +x $startdir/pkg/usr/bin/codeEditor
  echo "PythonCard" > $startdir/pkg/usr/lib/python2.4/site-packages/$pkgname.pth
}



Go to topic 38728

Return to index page 395
Return to index page 394
Return to index page 393
Return to index page 392
Return to index page 391
Return to index page 390
Return to index page 389
Return to index page 388
Return to index page 387
Return to index page 386