Commit 26c1b8da authored by Neofytos Kolokotronis's avatar Neofytos Kolokotronis

python-cx_freeze: updated and added python3 package

parent 6281852a
# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/python-cx_freeze
pkgbase=python-cx_freeze
pkgname=('python3-cx_freeze' 'python2-cx_freeze')
pkgver=4.3.4
pkgrel=1
pkgdesc='Set of utilities for freezing Python scripts into executables'
arch=('x86_64')
url='http://cx-freeze.sourceforge.net/'
license=('PSF')
makedepends=('python3' 'python2')
source=("https://pypi.python.org/packages/source/c/cx_Freeze/cx_Freeze-$pkgver.tar.gz")
md5sums=('5bd662af9aa36e5432e9144da51c6378')
package_python3-cx_freeze() {
depends=('python3')
conflicts=('cx_freeze' 'python2-cx_freeze')
cd "cx_Freeze-$pkgver"
python3 setup.py install --root "$pkgdir" --optimize 1
}
package_python2-cx_freeze() {
depends=('python2')
conflicts=('cx_freeze' 'python3-cx_freeze')
replaces=('cx_freeze')
cd "cx_Freeze-$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/' {} \;
}
#!/bin/sh
cd /usr/share/cx-freeze
./FreezePython "$@"
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=python2-cx_freeze
_tarname=cx_Freeze
pkgver=4.3.1
pkgrel=1
pkgdesc="A set of utilities for freezing Python scripts into executables"
arch=('i686' 'x86_64')
url="http://cx-freeze.sourceforge.net/"
license=('custom')
depends=('python2')
provides=('cxfreeze' 'cx_freeze')
replaces=('cx_freeze')
conflicts=('cx_freeze')
source=("http://downloads.sourceforge.net/cx-freeze/$_tarname-$pkgver.tar.gz"
'FreezePython.sh')
md5sums=('8ac023e544679d796a66b51e568a9604'
'5cc60d1644eba12a57c22cc1348a4afd')
package() {
cd "$srcdir/$_tarname-$pkgver"
python2 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"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment