SHARE
TWEET

qt4-private-headers

a guest Mar 14th, 2015 287 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: gborzi <gborzi@ieee.org>
  2. # Contributor: Andrea Scarpino <andrea@archlinux.org>
  3.  
  4. pkgname=qt4-private-headers
  5. pkgver=4.8.6
  6. pkgrel=1
  7. pkgdesc="Qt4 private headers for development"
  8. arch=('any')
  9. license=('GPL3' 'LGPL')
  10. url="http://qt-project.org/"
  11. depends=("qt4=${pkgver}")
  12. conflicts=('qt-private-headers')
  13. replaces=('qt-private-headers')
  14. _pkgfqn="qt-everywhere-opensource-src-${pkgver}"
  15. source=("http://download.qt-project.org/official_releases/qt/${pkgver%.*}/${pkgver}/${_pkgfqn}.tar.gz")
  16. md5sums=('2edbe4d6c2eff33ef91732602f3518eb')
  17.  
  18. package() {
  19.     install -d "${pkgdir}"/usr/include/qt4/{QtCore,QtDeclarative,QtGui,QtScript}
  20.     install -d "${pkgdir}"/usr/src/qt4/{corelib,declarative,gui,script}
  21.    
  22.     for i in QtCore QtDeclarative QtGui QtScript; do
  23.       cp -r ${_pkgfqn}/include/${i}/private/ \
  24.         "${pkgdir}"/usr/include/qt4/${i}/
  25.     done
  26.  
  27.     find "${pkgdir}"/usr/include/qt4/ -name *.h \
  28.       -exec sed -i 's|#include "../../../src/|#include "../../../src/qt4/|' {} \;
  29.  
  30.     for i in corelib declarative gui script; do
  31.       cp -r ${_pkgfqn}/src/${i} "${pkgdir}"/usr/src/qt4/
  32.     done
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top