You are not logged in.
Hi everyone,
I'm attempting to make PKGBUILD for Pythoncard, but as it's my first attempt I was wondering if anyone could give me feedback on it. I'm using it because a book I just bought on Python uses it, but the package assumes that everyone uses rpm or deb and has very scant information on how to install the tar.gz.
Anyway, the PKGBUILD seems to work, the files are put in the right place, a pythoncard.pth is added so python uses the right path, and I've included a launcher for codeEditor in /usr/bin (but I don't know if there's some other way to do this).
Please let me know if I should be doing it all differently.
cheers,
jani
# 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
}
Offline
I haven't build it, but it looks correct. You might want to submit it to AUR: http://aur.archlinux.org/
Offline
Cool, thanks for looking over it. Yeah, I'll submit it after I work out how to extract a .deb in Archlinux to check what the debian package does to put the executables in the right places or what paths are modified. All the stuff works, but it's inconvenient to get to.
[edit] version 1 of this PKGBUILD is now in AUR for anyone interested.
Offline