You are not logged in.
Pages: 1
Hi all, in order to use python for S60 I need to install python 2.5 in my system, but at the same time i don't want to mess up my system.
How can i do this?
i've tried to modify the current PKGBUILD and i've come up with this:
pkgname=python25
pkgver=2.5.4
pkgrel=1
_pybasever=2.5
pkgdesc="A high-level scripting language"
arch=('i686' 'x86_64')
license=('custom')
url="http://www.python.org"
depends=('db' 'bzip2' 'gdbm' 'openssl>=0.9.8d' 'zlib')
provides=('python-elementtree' 'python-ctypes')
source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.bz2)
md5sums=('ad47b23778f64edadaaa8b5534986eed')
build() {
cd ${srcdir}/Python-${pkgver}
./configure --prefix=/usr --enable-shared --with-threads --enable-unicode
# temporary backwards compatibility stuff...
make || return 1
make DESTDIR=${pkgdir} install
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}basically i do not know how to change the basedir /usr in order to have the executable available after the installation
thanks in advance :-)
Offline
Try
pkgname=python25
pkgver=2.5.4
pkgrel=1
_pybasever=2.5
pkgdesc="A high-level scripting language"
arch=('i686' 'x86_64')
license=('custom')
url="http://www.python.org"
depends=('db' 'bzip2' 'gdbm' 'openssl>=0.9.8d' 'zlib')
provides=('python-elementtree' 'python-ctypes')
source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.bz2)
md5sums=('394a5f56a5ce811fb0f023197ec0833e')
build() {
cd ${srcdir}/Python-${pkgver}
./configure --prefix=/usr --enable-shared --with-threads --enable-unicode --with-suffix="-2.5"
# temporary backwards compatibility stuff...
make || return 1
make DESTDIR=${pkgdir} install
rm $pkgdir/usr/share/man/man1/python.1
for _i in idle pydoc python-config smtpd.py
do
rm $pkgdir/usr/bin/${_i}
done
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}Offline
thanks mate, it worked like a charm :-)
Offline
Pages: 1