diff options
author | Donald Carr | 2017-09-23 00:52:48 -0700 |
---|---|---|
committer | Donald Carr | 2017-09-23 01:01:09 -0700 |
commit | 059f78415d6cb03005d9fcc0ac55b7b20b8125e3 (patch) | |
tree | 1b25c40740ecbe208b089ad4f28514230281952d | |
download | aur-059f78415d6cb03005d9fcc0ac55b7b20b8125e3.tar.gz |
Initial commit of qt gtk platform backend for Qt 5
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | qt-force-gtk-platform | 1 |
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..74fb4f66caba --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +# Generated by mksrcinfo v8 +# Sat Sep 23 08:01:06 UTC 2017 +pkgbase = qt-gtk-platform-plugin + pkgdesc = GTK platform backend for Qt + pkgver = 0.0.193 + pkgrel = 1 + url = https://github.com/CrimsonAS/gtkplatform + arch = any + license = LGPL3 + source = git://github.com/sirspudd/gtkplatform.git + sha256sums = SKIP + +pkgname = qt-gtk-platform-plugin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3895493cb4b6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Donald Carr<sirspudd at gmail dot com> + +#_qmake_args="CONFIG+=debug" +pkgname=qt-gtk-platform-plugin +pkgver=0.0.193 +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") +source=("git://github.com/sirspudd/gtkplatform.git") +sha256sums=('SKIP') + +pkgver () { + cd "${srcdir}/gtkplatform" + if git describe --tags --long; then + git describe --tags --long | sed -r 's/^v//;s/-RC/RC/;s/([^-]*-g)/r\1/;s/-/./g' + else + echo "0.0.$(git rev-list --count HEAD)" + fi +} + +build() { + cd "${srcdir}/gtkplatform" + qmake DESTDIR=$srcdir + make +} + +package() { + local profiled_dir=${pkgdir}/etc/profile.d + mkdir -p $profiled_dir + cd "${srcdir}/gtkplatform" + cp ${startdir}/qt-force-gtk-platform ${profiled_dir} + INSTALL_ROOT="$pkgdir" make install +} diff --git a/qt-force-gtk-platform b/qt-force-gtk-platform new file mode 100644 index 000000000000..d3b04f68d626 --- /dev/null +++ b/qt-force-gtk-platform @@ -0,0 +1 @@ +export QT_QPA_PLATFORM=gtk |