summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD36
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5adfdb26467
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = qt4-private-headers-dev
+ pkgdesc = Qt4 private headers for development
+ pkgver = 4.8.7
+ pkgrel = 1
+ url = http://qt-project.org/
+ arch = any
+ license = GPL3
+ license = LGPL
+ depends = qt4=4.8.7
+ provides = qt4-private-headers
+ conflicts = qt-private-headers
+ conflicts = qt4-private-headers
+ replaces = qt-private-headers
+ source = http://download.qt-project.org/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
+ md5sums = d990ee66bf7ab0c785589776f35ba6ad
+
+pkgname = qt4-private-headers-dev
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a20fb488acd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 110172 2014-04-25 19:26:00Z jelle $
+# Maintainer: Black_Codec <orso.f.regna@gmail.com>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+
+pkgname=qt4-private-headers-dev
+#pkgname=qt4-private-headers
+pkgver=4.8.7
+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' 'qt4-private-headers')
+replaces=('qt-private-headers')
+provides=('qt4-private-headers')
+_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
+source=("http://download.qt-project.org/official_releases/qt/${pkgver%.*}/${pkgver}/${_pkgfqn}.tar.gz")
+md5sums=('d990ee66bf7ab0c785589776f35ba6ad')
+
+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
+}