summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD36
-rw-r--r--qt-force-gtk-platform1
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..74fb4f66cab
--- /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 00000000000..3895493cb4b
--- /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 00000000000..d3b04f68d62
--- /dev/null
+++ b/qt-force-gtk-platform
@@ -0,0 +1 @@
+export QT_QPA_PLATFORM=gtk