summaryrefslogtreecommitdiff
path: root/extra/cx_freeze/PKGBUILD
blob: 5320e8e814cb99d622e541e0851dbb29257ca03d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 151178 2012-02-25 07:00:37Z pierre $
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Roberto Alsina <ralsina@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' 'mips64el')
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')

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"
  install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/cx_freeze/COPYING"
}