diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-06-21 03:59:49 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-06-21 03:59:49 -0300 |
commit | c21f5170cf7f58becfd63c3f4be4bfe8e8bf7755 (patch) | |
tree | 4ebe38fd72b700eac8b05d456b2348ab6b42fcc0 /pcr/maliit-framework | |
parent | 5bb09e8eb70b20a612c3f2cb795a8a61980ae4e3 (diff) | |
parent | ad8ee0a3286648535e7987cfaa38ecb274a7542f (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/maliit-framework')
-rw-r--r-- | pcr/maliit-framework/PKGBUILD | 33 | ||||
-rwxr-xr-x | pcr/maliit-framework/maliit-framework.install | 30 |
2 files changed, 63 insertions, 0 deletions
diff --git a/pcr/maliit-framework/PKGBUILD b/pcr/maliit-framework/PKGBUILD new file mode 100644 index 000000000..545c34a0c --- /dev/null +++ b/pcr/maliit-framework/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor: Jon Nordby <jononor@gmail.com> +# Maintainer: Jon Nordby <jononor@gmail.com> +# Maintainer (Parabola): Javier Barcena <javierbuilder@gmail.com> +# Contributor (Parabola): André Silva <emulatorman@lavabit.com> + +pkgname=maliit-framework +pkgver=0.99.0 +pkgrel=6 +pkgdesc="Maliit Input Methods - Framework" +arch=('x86_64' 'i686') +url="http://maliit.org" +license=('LGPL') +depends=('qt5-base' 'qt5-quick1' 'gtk2' 'gtk3' 'gconf') +install=$pkgname.install +source=(http://maliit.org/releases/$pkgname/$pkgname-$pkgver.tar.bz2) +md5sums=('c5e8c67cbfb514122518d92f1edcc990') + +build() { + cd "$pkgname-$pkgver" + + # BUILD + qmake -r . + make +} + +package() { + cd "$pkgname-$pkgver" + make INSTALL_ROOT="$pkgdir" GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 install + + install -m755 -d "$pkgdir/usr/share/gconf/schemas" + gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/$pkgname.schemas" --domain maliit-framework "$pkgdir"/etc/gconf/schemas/*.schemas + rm -f "$pkgdir"/etc/gconf/schemas/*.schemas +} diff --git a/pcr/maliit-framework/maliit-framework.install b/pcr/maliit-framework/maliit-framework.install new file mode 100755 index 000000000..08c54ae1b --- /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." + + gconfpkg --install ${pkgname} +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + 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." + +} |