AbysmalBiscuit

2017-11-07-AUR_qt5-color-widgets_integrating-qt-designer

Nov 7th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.45 KB | None | 0 0
  1. # Maintainer: Manuel Hüsers <manuel.huesers@uni-ol.de>
  2. # Contributor: Mattia Basaglia <mattia.basaglia@gmail.com>
  3.  
  4. pkgname=qt5-color-widgets
  5. _pkgname=QtColorWidgets
  6. pkgver=VERSION
  7. pkgrel=1
  8. pkgdesc='A user-friendly color dialog and several color-related widgets for Qt'
  9. arch=('i686' 'x86_64')
  10. url='https://github.com/mbasaglia/Qt-Color-Widgets'
  11. license=('LGPL3')
  12. depends=('qt5-base')
  13. optdepends=('qt5-tools: for QtDesigner integration'
  14.             'qtcreator: for QtCreator integration')
  15. makedepends=('git')
  16. provides=('qt-color-widgets-common')
  17. conflicts=('qt-color-widgets-common')
  18. replaces=('qt5-color-picker')
  19. source=("${pkgname}::git+git://github.com/mbasaglia/Qt-Color-Widgets.git")
  20. sha256sums=('SKIP')
  21.  
  22. pkgver() {
  23.     cd $pkgname
  24.     printf '0.r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  25. }
  26.  
  27. build() {
  28.     cd $pkgname
  29.     eval "qmake-${pkgname::3} PREFIX=${pkgdir}/usr"
  30.     make
  31.     mkdir build
  32.     cd build
  33.     cmake ..
  34.     make ColorWidgetsPlugin
  35. }
  36.  
  37. package() {
  38.     cd $pkgname
  39.     make DESTDIR="$pkgdir" install_target
  40.     install -d "${pkgdir}/usr/include/${_pkgname}"
  41.     mkdir -p "$pkgdir/usr/lib/qt/plugins/designer"
  42.     install -Dvm644 "build/color_widgets_designer_plugin/libColorWidgetsPlugin.so" "${pkgdir}/usr/lib/qt/plugins/designer/"
  43.     find 'src' -type f -iname '*.hpp' -exec install -Dvm644 {} "${pkgdir}/usr/include/${_pkgname}/" \;
  44.     find 'include' -maxdepth 1 -type f -exec install -Dvm644 {} "${pkgdir}/usr/include/${_pkgname}/" \;
  45. }
Add Comment
Please, Sign In to add comment