updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / libmeegotouch-git / PKGBUILD
blob21ea4d77a4d321e68a6e20ed3156e36b926f2999
1 # Contributor: Bernhard Friedreich <friesoft@gmail.com>
3 pkgname=libmeegotouch-git
4 pkgver=20110123
5 pkgrel=1
7 pkgdesc="Qt based MeeGo Touch Framework for developing touch based user interfaces"
8 url="http://meego.gitorious.org/meegotouch/libmeegotouch"
9 license=('LGPL')
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')
12 makedepends=('git')
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')
25 build() {
26     # Export the include dir
27     export QTDIR="/usr"
28     export INCLUDE="/usr/include"
30     msg "Connecting to the GIT server..."
31     if [ -d ${_gitname}/.git ]; then
32         cd ${_gitname}
33         git reset --hard HEAD
34         git pull origin
35     else
36         git clone ${_gitroot} ${_gitname}
37         cd ${_gitname}
38     fi
40     #patch -Np1 -i ${srcdir}/.patch
42     ./configure -prefix /usr \
43                 -libdir /usr/lib \
44                 -plainqt \
45                 -release
46     make || return 1
47     
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