SHARE
TWEET

PKGBUILD for python3.5rc3

a guest Sep 8th, 2015 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Samuel Damashek <samuel.damashek@gmail.com>
  2. # Based on python33 PKGBUILD (g.schulz)
  3.  
  4. pkgname=python35
  5. pkgver=3.5.0rc3
  6. pkgrel=1
  7. _pybasever=3.5
  8. pkgdesc="Next generation of the python high-level scripting language"
  9. arch=('i686' 'x86_64')
  10. license=('custom')
  11. url="http://www.python.org/"
  12. depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
  13. makedepends=('tk' 'sqlite' 'valgrind')
  14. optdepends=('tk: for tkinter' 'sqlite')
  15. options=('!makeflags')
  16. source=(https://www.python.org/ftp/python/3.5.0/Python-3.5.0rc3.tgz)
  17. sha256sums=('d82ad71248846a740e4bc6834df7e43d046723058c30025ed02a2ebf2fbdf6c5')
  18.  
  19. build() {
  20.   cd "${srcdir}/Python-${pkgver}"
  21.  
  22.   # FS#23997
  23.   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
  24.  
  25.   # Ensure that we are using the system copy of various libraries (expat, zlib and libffi),
  26.   # rather than copies shipped in the tarball
  27.   rm -rf Modules/expat
  28.   rm -rf Modules/zlib
  29.   rm -rf Modules/_ctypes/{darwin,libffi}*
  30.  
  31.   ./configure --prefix=/usr \
  32.               --enable-shared \
  33.               --with-threads \
  34.               --with-computed-gotos \
  35.               --enable-ipv6 \
  36.               --with-valgrind \
  37.               --with-system-expat \
  38.               --with-dbmliborder=gdbm:ndbm \
  39.               --with-system-ffi
  40.  
  41.   make
  42. }
  43.  
  44. # XXX disabled
  45. check_DISABLED() {
  46.   cd "${srcdir}/Python-${pkgver}"
  47.   LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
  48.      "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_distutils test_site \
  49.      test_urllib test_uuid test_pydoc
  50. }
  51.  
  52. package() {
  53.   cd "${srcdir}/Python-${pkgver}"
  54.   # altinstall: /usr/bin/pythonX.Y but not /usr/bin/python or /usr/bin/pythonX
  55.   make DESTDIR="${pkgdir}" altinstall maninstall
  56.  
  57.   # Work around a conflict with 3.4 the 'python' package.
  58.   rm "${pkgdir}/usr/lib/libpython3.so"
  59.   rm "${pkgdir}/usr/share/man/man1/python3.1"
  60.  
  61.   # Fix FS#22552
  62.   ln -sf ../../libpython${_pybasever}m.so \
  63.     "${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
  64.  
  65.   # Fix pycairo build
  66.   ln -sf python3.5m-config "${pkgdir}/usr/bin/python3.5-config"
  67.  
  68.   # Clean-up reference to build directory
  69.   sed -i "s|$srcdir/Python-${pkgver}:||" "$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile"
  70.  
  71.   # License
  72.   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  73. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top