1 # Contributor: Bernhard Friedreich <friesoft@gmail.com>
3 pkgname=libmeegotouch-git
7 pkgdesc="Qt based MeeGo Touch Framework for developing touch based user interfaces"
8 url="http://meego.gitorious.org/meegotouch/libmeegotouch"
10 arch=('i686' 'x86_64')
11 depends=('qt>=4.7' 'meegotouch-theme-git' 'gstreamer0.10' 'gstreamer0.10-base' 'gstreamer0.10-base-plugins' 'dbus' 'libxdamage' 'libx11' 'gconf')
14 provides=( "libmeegotouch-git=${pkgver}" "libmeegotouch=${pkgver}" 'libdui-git' 'libdui')
15 conflicts=( "libmeegotouch" 'libdui')
17 install=('libmeegotouch-git.install')
19 _gitroot="git://gitorious.org/meegotouch/libmeegotouch.git"
20 _gitname="libmeegotouch-git"
22 source=('mthemedaemon.desktop')
23 md5sums=('579998ef26f24fe76f5dc68913998f25')
26 # Export the include dir
28 export INCLUDE="/usr/include"
30 msg "Connecting to the GIT server..."
31 if [ -d ${_gitname}/.git ]; then
36 git clone ${_gitroot} ${_gitname}
40 #patch -Np1 -i ${srcdir}/.patch
42 ./configure -prefix /usr \
48 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
49 make INSTALL_ROOT=$pkgdir install || return 1
51 mkdir -p $pkgdir/etc/profile.d
52 echo "export M_DECORATED=0" > ${pkgdir}/etc/profile.d/libmeegotouch.sh
54 mkdir -p ${pkgdir}/etc/xdg/autostart
55 cp ${srcdir}/mthemedaemon.desktop ${pkgdir}/etc/xdg/autostart
57 # Fix rpmlint errors - some header files have invalid permissions
58 chmod 644 ${pkgdir}/usr/include/meegotouch/mrichtexteditstyle.h
59 chmod 644 ${pkgdir}/usr/include/meegotouch/mrichtextedit.h
61 # Create the mthemedaemon cache directory
62 mkdir -p ${pkgdir}/var/cache/meegotouch
64 # Remove known zero-length files
65 rm -f ${pkgdir}/usr/share/animatedlayout/themes/animatedlayout.conf
66 rm -f ${pkgdir}/usr/share/themes/base/meegotouch/widgetsgallery/feedbacks/press-babytoy/vibra.ivt
67 rm -f ${pkgdir}/usr/share/themes/base/meegotouch/widgetsgallery/feedbacks/release-space/vibra.ivt
68 rm -f ${pkgdir}/usr/share/themes/base/meegotouch/widgetsgallery/widgetsgallery.conf
69 rm -f ${pkgdir}/usr/share/themes/base/meegotouch/widgetsgallery/feedbacks/press-space/vibra.ivt
70 rm -f ${pkgdir}/usr/share/themes/base/meegotouch/widgetsgallery/feedbacks/release-babytoy/vibra.ivt
72 # Remove unpackaged files
73 rm -f ${pkgdir}/usr/share/l10n/meegotouch/libmeegotouch.qm
74 rm -f ${pkgdir}/usr/share/l10n/meegotouch/animatedlayout.qm
75 rm -f ${pkgdir}/usr/share/l10n/meegotouch/widgetsgallery.qm
77 # Copy examples, tests, benchmarks to /usr/share/doc/meegotouch
78 mkdir -p ${pkgdir}/usr/share/doc/meegotouch
79 cp -R ${srcdir}/${_gitname}/demos ${pkgdir}/usr/share/doc/meegotouch/demos
80 cp -R ${srcdir}/${_gitname}/examples ${pkgdir}/usr/share/doc/meegotouch/examples
81 cp -R ${srcdir}/${_gitname}/tests ${pkgdir}/usr/share/doc/meegotouch/tests
82 cp -R ${srcdir}/${_gitname}/benchmarks ${pkgdir}/usr/share/doc/meegotouch/benchmarks