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

Eric Bélanger eric at archlinux.org
Mon Feb 14 22:24:35 UTC 2011


    Date: Monday, February 14, 2011 @ 17:24:35
  Author: eric
Revision: 110034

Replace old man pages tarball by an optdepends on new opengl-man-pages package

Modified:
  mesa/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-02-14 22:19:23 UTC (rev 110033)
+++ PKGBUILD	2011-02-14 22:24:35 UTC (rev 110034)
@@ -19,8 +19,7 @@
              'gcc-libs>=4.5' 'dri2proto=2.3' 'python2' 'talloc' 'libxml2' 'imake')
 url="http://mesa3d.sourceforge.net"
 license=('custom')
-source=(ftp://ftp.archlinux.org/other/mesa/gl-manpages-1.0.1.tar.bz2
-        LICENSE)
+source=(LICENSE)
 if [ "${_git}" = "true" ]; then
 	# mesa git shot from 7.10 branch - see for state: http://cgit.freedesktop.org/mesa/mesa/snapshot/mesa-92a619b43fcd6a8778c3419ff3538c1113b4bdf3.tar.bz2
 	source=(${source[@]} 'ftp://ftp.archlinux.org/other/mesa/mesa-92a619b43fcd6a8778c3419ff3538c1113b4bdf3.tar.bz2')
@@ -74,10 +73,6 @@
 fi
 
   make
-
-  cd "${srcdir}/gl-manpages-1.0.1"
-  ./configure --prefix=/usr
-  make
 }
 
 package_libgl() {
@@ -158,6 +153,7 @@
 }
 package_mesa() {
   depends=('libgl' 'libx11>=1.3.5' 'libxt>=1.0.8' 'gcc-libs>=4.5' 'dri2proto=2.3' 'libdrm>=2.4.22' 'glproto>=1.4.12')
+  optdepends=('opengl-man-pages: for the OpenGL API man pages')
   pkgdesc="Mesa 3-D graphics libraries and include files"
 
 if [ "${_git}" = "true" ]; then
@@ -179,9 +175,6 @@
   rm -f "${pkgdir}/usr/include/GL/glut.h"
   rm -rf ${pkgdir}/usr/include/{GLES,GLES2,EGL,KHR}
 
-  cd "${srcdir}/gl-manpages-1.0.1"
-  make DESTDIR="${pkgdir}" install
-
   install -m755 -d "${pkgdir}/usr/share/licenses/mesa"
   install -m755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa/"
 }




More information about the arch-commits mailing list