Date: Saturday, March 2, 2013 @ 23:19:19
  Author: andrea
Revision: 85531

archrelease: copy trunk to community-any

Added:
  qt4-private-headers/repos/community-any/
  qt4-private-headers/repos/community-any/PKGBUILD
    (from rev 85530, qt4-private-headers/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: qt4-private-headers/repos/community-any/PKGBUILD (from rev 85530, 
qt4-private-headers/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2013-03-02 22:19:19 UTC (rev 85531)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <and...@archlinux.org>
+
+pkgname=qt4-private-headers
+pkgver=4.8.4
+pkgrel=1
+pkgdesc="Qt4 private headers for development"
+arch=('any')
+license=('GPL3' 'LGPL')
+url=http://qt-project.org/
+depends=("qt4=${pkgver}")
+conflicts=('qt-private-headers')
+replaces=('qt-private-headers')
+_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
+source=("http://releases.qt-project.org/qt/source/${_pkgfqn}.tar.gz";)
+md5sums=('89c5ecba180cae74c66260ac732dc5cb')
+
+package() {
+    install -d 
"${pkgdir}"/usr/include/qt4/{QtCore,QtDeclarative,QtGui,QtScript}
+    install -d "${pkgdir}"/usr/src/qt4/{corelib,declarative,gui,script}
+    
+    for i in QtCore QtDeclarative QtGui QtScript; do
+      cp -r ${_pkgfqn}/include/${i}/private/ \
+        "${pkgdir}"/usr/include/qt4/${i}/
+    done
+
+    find "${pkgdir}"/usr/include/qt4/ -name *.h \
+      -exec sed -i 's|#include "../../../src/|#include "../../../src/qt4/|' {} 
\;
+
+    for i in corelib declarative gui script; do
+      cp -r ${_pkgfqn}/src/${i} "${pkgdir}"/usr/src/qt4/
+    done
+}

Reply via email to