[arch-commits] Commit in (python2 python2/repos python2/trunk python2/trunk/PKGBUILD)

Allan McRae allan at archlinux.org
Tue Aug 17 07:01:33 EDT 2010


    Date: Tuesday, August 17, 2010 @ 07:01:32
  Author: allan
Revision: 87603

python2 package

Added:
  python2/
  python2/repos/
  python2/trunk/
  python2/trunk/PKGBUILD

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

Added: python2/trunk/PKGBUILD
===================================================================
--- python2/trunk/PKGBUILD	                        (rev 0)
+++ python2/trunk/PKGBUILD	2010-08-17 11:01:32 UTC (rev 87603)
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 75257 2010-04-01 05:30:58Z allan $
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributer: Jason Chu <jason at archlinux.org>
+
+pkgname=python
+pkgver=2.7
+pkgrel=1
+_pybasever=2.7
+pkgdesc="A high-level scripting language"
+arch=('i686' 'x86_64')
+license=('PSF')
+url="http://www.python.org"
+depends=('db' 'bzip2' 'gdbm' 'openssl' 'zlib' 'expat' 'sqlite3')
+makedepends=('tk')
+optdepends=('tk: for IDLE')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.bz2)
+md5sums=('0e8c9ec32abf5b732bea7d91b38c3339')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  export OPT="${CFLAGS}"
+  ./configure --prefix=/usr --enable-shared --with-threads \
+              --enable-unicode=ucs4 --with-system-expat
+
+  make
+}
+
+package() {
+  cd ${srcdir}/Python-${pkgver}
+  make DESTDIR=${pkgdir} install
+
+  rm ${pkgdir}/usr/bin/python
+  ln -sf python${_pybasever} ${pkgdir}/usr/bin/python2
+
+  ln -sf ../../libpython${_pybasever}.so \
+    ${pkgdir}/usr/lib/python${_pybasever}/config/libpython${_pybasever}.so
+
+  install -dm755 ${pkgdir}/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
+  install -m755 Tools/i18n/{msgfmt,pygettext}.py \
+    ${pkgdir}/usr/lib/python${_pybasever}/Tools/i18n/
+  install -m755 Tools/scripts/{README,*py} \
+    ${pkgdir}/usr/lib/python${_pybasever}/Tools/scripts/
+
+  # fix conflicts with python
+  mv $pkgdir/usr/bin/idle{,2}
+  mv $pkgdir/usr/bin/pydoc{,2}
+  rm $pkgdir/usr/bin/python-config
+  mv $pkgdir/usr/bin/smtpd.py $pkgdir/usr/lib/python${_pybasever}/
+
+  # license
+  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list