[arch-commits] Commit in pyopengl/trunk (PKGBUILD)

Andrea Scarpino andrea at nymeria.archlinux.org
Wed May 22 06:37:54 EDT 2013


    Date: Wednesday, May 22, 2013 @ 12:37:54
  Author: andrea
Revision: 186228

upgpkg: pyopengl 3.0.2-3

python-distribute is not needed

Modified:
  pyopengl/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-22 10:21:47 UTC (rev 186227)
+++ PKGBUILD	2013-05-22 10:37:54 UTC (rev 186228)
@@ -8,28 +8,27 @@
 pkgbase=pyopengl
 pkgname=('python2-opengl' 'python-opengl')
 pkgver=3.0.2
-pkgrel=2
+pkgrel=3
 pkgdesc="The cross platform Python binding to OpenGL and related APIs"
 url="http://pyopengl.sourceforge.net/"
 license=('BSD')
 arch=('any')
 makedepends=('freeglut' 'python2-distribute' 'python-distribute')
-#source=("http://downloads.sourceforge.net/${pkgbase}/PyOpenGL-${pkgver}.tar.gz"
 source=("http://pypi.python.org/packages/source/P/PyOpenGL/PyOpenGL-${pkgver}.tar.gz"
         'LICENSE')
 md5sums=('77becc24ffc0a6b28030aa109ad7ff8b'
          '0b53c508a63e5dbaf44cdfb0fa103b3a')
 
-build() {
-  cp -r PyOpenGL-${pkgver} python-PyOpenGL-${pkgver}
+prepare() {
+    cp -r PyOpenGL-${pkgver} python-PyOpenGL-${pkgver}
 }
 
 package_python2-opengl() {
-        depends=('freeglut' 'python2-distribute')
+    depends=('python2' 'freeglut')
 	conflicts=('python-pyopengl' 'python-opengl<=3.0.1-4')
 	replaces=('python-pyopengl' 'python-opengl<=3.0.1-4')
 
-        cd PyOpenGL-${pkgver}
+    cd PyOpenGL-${pkgver}
 	python2 setup.py install --root="${pkgdir}" --optimize=1
 	install -Dm644 "${srcdir}/LICENSE" \
 		"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
@@ -42,10 +41,10 @@
 }
 
 package_python-opengl() {
-        depends=('freeglut' 'python-distribute')
-
-        cd python-PyOpenGL-${pkgver}
-	python setup.py install --root="${pkgdir}" --optimize=1
+    depends=('python' 'freeglut')
+ 
+    cd python-PyOpenGL-${pkgver}
+ 	python setup.py install --root="${pkgdir}" --optimize=1
 	install -Dm644 "${srcdir}/LICENSE" \
 		"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list