summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c529353732c0485f6299288e3ed3d9cf194fd05f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Donald Carr<sirspudd at gmail dot com>

#_qmake_args="CONFIG+=debug"
pkgname=qt-gtk-platform-plugin
pkgver=0.1.0
pkgrel=1
pkgdesc='GTK platform backend for Qt'
arch=('any')
url='https://github.com/CrimsonAS/gtkplatform'
license=('LGPL3')
source=("git://github.com/CrimsonAS/gtkplatform.git#tag=$pkgver")
sha256sums=('SKIP')

build() {
  cd "${srcdir}/gtkplatform"
  qmake DESTDIR=$srcdir
  make
}

package() {
  local env_dir=${pkgdir}/usr/share/gdm/env.d/
  local env_file=${startdir}/qt-force-gtk-platform.env

  mkdir -p $env_dir
  cp ${env_file} ${env_dir}

  cd "${srcdir}/gtkplatform"
  INSTALL_ROOT="$pkgdir" make install
}