[arch-commits] Commit in cx_freeze/trunk (FreezePython.sh PKGBUILD)

Alexander Rødseth arodseth at nymeria.archlinux.org
Mon Feb 25 12:34:14 UTC 2013


    Date: Monday, February 25, 2013 @ 13:34:14
  Author: arodseth
Revision: 84853

upgpkg: cx_freeze 4.3.1-1

Modified:
  cx_freeze/trunk/PKGBUILD
Deleted:
  cx_freeze/trunk/FreezePython.sh

-----------------+
 FreezePython.sh |    4 ----
 PKGBUILD        |   52 ++++++++++++++++++++++++++++++----------------------
 2 files changed, 30 insertions(+), 26 deletions(-)

Deleted: FreezePython.sh
===================================================================
--- FreezePython.sh	2013-02-25 11:40:52 UTC (rev 84852)
+++ FreezePython.sh	2013-02-25 12:34:14 UTC (rev 84853)
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-cd /usr/share/cx-freeze
-./FreezePython "$@"

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-02-25 11:40:52 UTC (rev 84852)
+++ PKGBUILD	2013-02-25 12:34:14 UTC (rev 84853)
@@ -1,31 +1,39 @@
 # $Id$
-# Maintainer: Ray Rashif <schiv at archlinux.org>
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Ray Rashif <schiv at archlinux.org>
 # Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
 # Contributor: Eric Belanger <eric at archlinux.org>
 # Contributor: Roberto Alsina <ralsina at kde.org>
 
-pkgname=cx_freeze
-_tarname=cx_Freeze
-pkgver=4.2.3
-pkgrel=2
-pkgdesc="A set of utilities for freezing Python scripts into executables"
-arch=('i686' 'x86_64')
-url="http://www.python.net/crew/atuining/cx_Freeze/"
-license=('custom')
-depends=('python2')
-provides=('cxfreeze')
-source=("http://downloads.sourceforge.net/cx-freeze/$_tarname-$pkgver.tar.gz"
-        'FreezePython.sh')
-md5sums=('a524cfd23de5d37e0ec9400ba1ccd6ad'
-         '5cc60d1644eba12a57c22cc1348a4afd')
+pkgbase=cx_freeze
+pkgname=('python-cx_freeze' 'python2-cx_freeze')
+pkgver=4.3.1
+pkgrel=1
+pkgdesc='Set of utilities for freezing Python scripts into executables'
+arch=('x86_64' 'i686')
+url='http://cx-freeze.sourceforge.net/'
+license=('PSF')
+makedepends=('python' 'python2')
+source=("http://prdownloads.sourceforge.net/${pkgbase/_/-}/${pkgbase/f/F}-$pkgver.tar.gz")
+sha256sums=('11f8818ab4e1754c81c1226ce3430f29e6ba231a22a153ce3794a5cc464fa11b')
 
-package() {
-  cd "$srcdir/$_tarname-$pkgver"
+package_python-cx_freeze() {
+  depends=('python')
+  conflicts=('cx_freeze' 'python2-cx_freeze')
 
-  python2 setup.py install --root "$pkgdir/" --optimize 1
+  cd "$srcdir/${pkgbase/f/F}-$pkgver"
+  python setup.py install --root "$pkgdir" --optimize 1
+}
 
-  install -d "$pkgdir"/usr/share/cx-freeze/{bases,initscripts}
-  install -m755 source/bases/* "$pkgdir/usr/share/cx-freeze/bases"
-  install -m644 initscripts/* "$pkgdir/usr/share/cx-freeze/initscripts"
-  install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/cx_freeze/COPYING"
+package_python2-cx_freeze() {
+  depends=('python2')
+  conflicts=('cx_freeze' 'python-cx_freeze')
+  replaces=('cx_freeze')
+
+  cd "$srcdir/${pkgbase/f/F}-$pkgver"
+  python2 setup.py install --root "$pkgdir" --optimize 1
+  # Python 2 shebang fix
+  find "$pkgdir" -name qotd.py -exec sed -i '0,/on/s//on2/' {} \;
 }
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list