You are not logged in.

#1 2008-07-12 22:41:29

X/ax
Member
From: Oost vlaanderen, Belgium
Registered: 2008-01-13
Posts: 275
Website

[REQUEST] python 2.6

Could someone please supply (the/a) PKGBUILD for python 2.6?

Links to sources:
gzipped: http://www.python.org/ftp/python/2.6/Python-2.6b1.tgz
bzipped: http://www.python.org/ftp/python/2.6/Py … b1.tar.bz2

I assume it'll be compile stuff.

Thanks a lot in advance!


My coding blog (or an attempt at it)
Archer start page (or an attempt at it)

Offline

#2 2008-07-13 08:46:22

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [REQUEST] python 2.6

Take the PKGBUILD from ABS, change version number and md5sum, remove the patches and you are done.

Offline

#3 2008-07-13 16:48:32

X/ax
Member
From: Oost vlaanderen, Belgium
Registered: 2008-01-13
Posts: 275
Website

Re: [REQUEST] python 2.6

Stefan Husmann wrote:

Take the PKGBUILD from ABS, change version number and md5sum, remove the patches and you are done.

Ok, that worked out, thanks...
For the people interested, here's the PKGBUILD modified from the python3 PKGBUILD.

pkgname=python2.6
pkgver=2.6b1
pkgrel=4
pkgdesc="Python 2.6 - successor to 2.5 ^^"
arch=("i686" "x86_64")
url="http://www.python.org/download/releases/2.6/"
license=("custom")
depends=(bzip2 openssl tk sqlite3 gdbm)
makedepends=()
options=("!emptydirs")
source=(http://www.python.org/ftp/python/2.6/Python-$pkgver.tgz)
md5sums=('b7b66dd5638b0277b17ddefa25b0ea5a')

build() {
    cd $startdir/src/Python-$pkgver
    [ `gcc --version | head -1 | awk '{print $3}'` = '4.3.0' ] && export CC="gcc $CFLAGS -fno-tree-vrp"
    ./configure --prefix=/usr --enable-shared --enable-ipv6
    make || return 1
    make DESTDIR=$startdir/pkg altinstall maninstall
    install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
    cd $pkgdir/usr
    #mv share/man/man1/python.1 share/man/man1/python3.1
    cd bin
    mv idle idle2.6
    mv pydoc pydoc2.6
    mv smtpd.py smtpd2.6.py
    #ln -s python3.0 python3
    #ln -s python3.0-config python3-config
}
# vim: ts=2

My coding blog (or an attempt at it)
Archer start page (or an attempt at it)

Offline

Board footer

Powered by FluxBB