Advertisement
yochananmarqos

qgnomeplatform

Oct 9th, 2021 (edited)
1,202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.35 KB | None | 0 0
  1. pkgname=('qgnomeplatform' 'qgnomeplatform-qt6')
  2. pkgbase=qgnomeplatform
  3. pkgver=0.8.1
  4. pkgrel=1
  5. pkgdesc="QPlatformTheme for a better Qt application inclusion in GNOME"
  6. arch=('x86_64')
  7. url="https://github.com/FedoraQt/QGnomePlatform"
  8. license=('LGPL2.1')
  9. makedepends=('adwaita-qt>=1.4.1' 'adwaita-qt6>=1.4.1' 'cmake' 'git' 'gtk3'
  10.              'qt5-wayland' 'qt6-wayland')
  11. _commit=f75a94825224edce4ecc3d952cc819b2d5f295b4
  12. source=("$pkgname::git+https://github.com/FedoraQt/QGnomePlatform.git#commit=$_commit")
  13. sha256sums=('SKIP')
  14.  
  15. pkgver() {
  16.   cd "$srcdir/$pkgname"
  17.   git describe --tags | sed 's/-/+/g'
  18. }
  19.  
  20. build() {
  21.   cmake -B build-qt5 -S "$pkgname" \
  22.     -DCMAKE_BUILD_TYPE=None \
  23.     -DCMAKE_INSTALL_PREFIX=/usr \
  24.     -DUSE_QT6=OFF \
  25.     -Wno-dev
  26.   make -C build-qt5
  27.  
  28.   cmake -B build-qt6 -S "$pkgname" \
  29.     -DCMAKE_BUILD_TYPE=None \
  30.     -DCMAKE_INSTALL_PREFIX=/usr \
  31.     -DUSE_QT6=ON \
  32.     -Wno-dev
  33.   make -C build-qt6
  34. }
  35.  
  36. package_qgnomeplatform() {
  37.   pkgdesc="QPlatformTheme for a better Qt5 application inclusion in GNOME"
  38.   depends=('adwaita-qt>=1.4.0' 'gtk3' 'qt5-wayland')
  39.  
  40.   make -C build-qt5 DESTDIR="$pkgdir" install
  41. }
  42.  
  43. package_qgnomeplatform-qt6() {
  44.   pkgdesc="QPlatformTheme for a better Qt6 application inclusion in GNOME"
  45.   depends=('adwaita-qt6>=1.4.0' 'gtk3' 'qt6-wayland')
  46.  
  47.   make -C build-qt6 DESTDIR="$pkgdir" install
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement