summaryrefslogtreecommitdiff
path: root/pcr/maliit-framework
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-20 15:56:49 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-20 15:56:49 -0300
commit8b8d7e159368a5b54e9c9e20927c3347caae6e26 (patch)
tree832a08b4582562432d1eb33b48e5514a46fc47f6 /pcr/maliit-framework
parentba25377bd4455efd813625b99046219ed199667d (diff)
downloadabslibre-8b8d7e159368a5b54e9c9e20927c3347caae6e26.tar.gz
abslibre-8b8d7e159368a5b54e9c9e20927c3347caae6e26.tar.bz2
abslibre-8b8d7e159368a5b54e9c9e20927c3347caae6e26.zip
maliit-framework: add new package to pcr repo
Diffstat (limited to 'pcr/maliit-framework')
-rw-r--r--pcr/maliit-framework/PKGBUILD28
-rwxr-xr-xpcr/maliit-framework/maliit-framework.install30
2 files changed, 58 insertions, 0 deletions
diff --git a/pcr/maliit-framework/PKGBUILD b/pcr/maliit-framework/PKGBUILD
new file mode 100644
index 000000000..102a02e75
--- /dev/null
+++ b/pcr/maliit-framework/PKGBUILD
@@ -0,0 +1,28 @@
+# Contributor: Jon Nordby <jononor@gmail.com>
+# Maintainer: Jon Nordby <jononor@gmail.com>
+
+pkgname=maliit-framework
+pkgver=0.99.0
+pkgrel=1
+pkgdesc="Maliit Input Methods - Framework"
+arch=('x86_64' 'i686')
+url="http://maliit.org"
+license=('LGPL')
+depends=('qt5-base' 'qt5-quick1' 'gtk2' 'gtk3')
+install=${pkgname}.install
+source=(http://maliit.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('c5e8c67cbfb514122518d92f1edcc990')
+
+build() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+
+ # BUILD
+ qmake -r .
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+
+ make install INSTALL_ROOT="$pkgdir/"
+}
diff --git a/pcr/maliit-framework/maliit-framework.install b/pcr/maliit-framework/maliit-framework.install
new file mode 100755
index 000000000..fc328d6c3
--- /dev/null
+++ b/pcr/maliit-framework/maliit-framework.install
@@ -0,0 +1,30 @@
+pkgname=maliit-framework
+
+post_install() {
+ echo "Updating gtk.immodules..."
+ gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules
+ gtk-query-immodules-3.0 --update-cache
+ echo "Done."
+
+ usr/sbin/gconfpkg --install ${pkgname}
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ usr/sbin/gconfpkg --uninstall ${pkgname}
+}
+
+post_remove() {
+ echo "Updating gtk.immodules..."
+ gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules
+ gtk-query-immodules-3.0 --update-cache
+ echo "Done."
+
+}