From a52aae1102dd66b353127d2f5c2218551af656e4 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 21 Jun 2013 01:32:30 -0700 Subject: Fri Jun 21 01:31:20 PDT 2013 --- pcr/maliit-framework/PKGBUILD | 33 +++++++++++++++++++++++++++ pcr/maliit-framework/maliit-framework.install | 30 ++++++++++++++++++++++++ pcr/maliit-plugins/PKGBUILD | 32 ++++++++++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 pcr/maliit-framework/PKGBUILD create mode 100755 pcr/maliit-framework/maliit-framework.install create mode 100644 pcr/maliit-plugins/PKGBUILD (limited to 'pcr') 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 +# Maintainer: Jon Nordby +# Maintainer (Parabola): Javier Barcena +# Contributor (Parabola): André Silva + +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." + +} diff --git a/pcr/maliit-plugins/PKGBUILD b/pcr/maliit-plugins/PKGBUILD new file mode 100644 index 000000000..cdab07003 --- /dev/null +++ b/pcr/maliit-plugins/PKGBUILD @@ -0,0 +1,32 @@ +# Contributor: Jon Nordby +# Maintainer: Jon Nordby + +pkgname=maliit-plugins +pkgver=0.99.0 +pkgrel=1 +pkgdesc="Maliit Input Methods - Plugins" +arch=('x86_64' 'i686') +url="http://maliit.org" +license=('LGPL') +depends=('qt5-base' 'maliit-framework') +source=(http://maliit.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.bz2 + config.patch) +md5sums=('29f07d937803a61e74301e4616d55dbb' + 'f43d45c9917924750edf36000492bd73') + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + + # fix issue on building + patch -Np1 -i "$srcdir/config.patch" + + # BUILD + qmake -r . CONFIG+=notests + make +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + + make install INSTALL_ROOT="$pkgdir/" +} -- cgit v1.2.3-54-g00ecf