summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8163d0950594f69dfa5479bfd5607f28620f3c8c (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# See http://wiki.archlinux.org/index.php/Python_Package_Guidelines for more
# information on Python packaging.

# Maintainer: Fabien Devaux <fdev31 @ gmail.com>

_name=glipy
pkgname=python2-$_name
pkgver=1.0
pkgrel=1
pkgdesc="The OpenGL IPython/Python terminal"
arch=(any)
url="http://webloria.loria.fr/~rougier/coding/glipy/"
license=('BSD')
groups=()
depends=('python' 'pyglet' 'ipython' 'python2-numpy')
makedepends=('patch')
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=(http://www.loria.fr/~rougier/coding/software/${_name}.tgz)
md5sums=(72f03a34ad9380066a123c44311ed1ef)

package() {
  cd "$srcdir/$_name-beta"
  patch -p0 <<EOF
--- setup.py-orig 2012-11-16 12:42:53.552110104 +0100
+++ setup.py  2012-11-16 12:42:59.135445106 +0100
@@ -8,8 +8,6 @@
 # file file COPYING, distributed as part of this software.
 # -----------------------------------------------------------------------------
 import os
-from ez_setup import use_setuptools
-use_setuptools()
 from setuptools import setup
 
 # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
EOF

  python2 setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et: