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

Sven-Hendrik Haase svenstaro at nymeria.archlinux.org
Sat Jul 6 13:21:17 UTC 2013


    Date: Saturday, July 6, 2013 @ 15:21:17
  Author: svenstaro
Revision: 93589

Prepare major update

Modified:
  cegui/trunk/PKGBUILD

----------+
 PKGBUILD |   47 ++++++++++++++++++++---------------------------
 1 file changed, 20 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-07-06 13:20:24 UTC (rev 93588)
+++ PKGBUILD	2013-07-06 13:21:17 UTC (rev 93589)
@@ -5,52 +5,45 @@
 # Contributor: Bjorn Lindeijer <bjorn at lindeijer.nl>
 
 pkgbase=cegui
-pkgname=('cegui' 'cegui-docs')
-pkgver=0.7.9
-pkgrel=3
+pkgname='cegui'
+pkgver=0.8.2
+pkgrel=1
 pkgdesc="A free library providing windowing and widgets for graphics APIs/engines"
 arch=('i686' 'x86_64')
 url="http://crayzedsgui.sourceforge.net"
-#options=('!libtool')
 license=("MIT")
 depends=('pcre' 'glew' 'expat' 'freetype2' 'libxml2' 'devil' 'freeglut' 'lua51' 'silly')
-makedepends=('python2' 'doxygen' 'ogre' 'gtk2' 'boost' 'graphviz' 'irrlicht')
+makedepends=('cmake' 'python2' 'doxygen' 'ogre' 'gtk2' 'boost' 'graphviz' 'irrlicht')
 optdepends=("python2: python bindings"
             "ogre: ogre module"
             "gtk2: gtk2 module"
             "irrlicht: irrlicht module")
-options=(!libtool)
-source=(http://downloads.sourceforge.net/crayzedsgui/CEGUI-$pkgver.tar.gz)
-md5sums=('a8b682daf82e383edc169c2e6eb2b321')
+source=(http://downloads.sourceforge.net/crayzedsgui/cegui-$pkgver.tar.gz)
+md5sums=('f72951f0cc0374bb2294035cb639bb83')
 
 build() {
-  cd "$srcdir/CEGUI-${pkgver}"
+  cd "$srcdir/cegui-${pkgver}"
 
-  ./bootstrap
+  [[ -d build ]] && rm -r build
+  mkdir build && cd build
 
-  ./configure --prefix=/usr \
-    --sysconfdir=/etc \
-    --enable-null-renderer \
-    --with-gtk2
+  cmake .. \
+      -DCMAKE_INSTALL_PREFIX=/usr \
+      -DCEGUI_LIB_INSTALL_DIR=lib \
+      -DPYTHON_EXECUTABLE=/usr/bin/python2
 
   make
+  make html
 }
 
-package_cegui() {
-  cd "$srcdir/CEGUI-${pkgver}"
+package() {
+  cd "$srcdir/cegui-${pkgver}"
  
+  cd build
+
   make DESTDIR="${pkgdir}" install
 
+  cd ..
+
   install -Dm644 doc/COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
 }
-
-package_cegui-docs() {
-  pkgdesc="Documentation for cegui"
-  depends=()
-
-  cd "$srcdir/CEGUI-${pkgver}"
-
-  cd doc/doxygen && doxygen
-  cd .. && make DESTDIR="${pkgdir}" install-html
-  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
-}




More information about the arch-commits mailing list