desktop/support-pkg-qt-mobility/PKGBUILD

62 lines
1.9 KiB
Bash
Raw Normal View History

# Support packages for Desktop
pkgname=qt-mobility
pkgver=1.2.0
pkgrel=2
pkgdesc="Qt APIs for mobile device functionality"
arch=('x86_64' 'i686')
url="http://qt.nokia.com"
license=('LGPL')
depends=('qt>=4.7' 'bluez')
makedepends=('perl' 'mesa')
optdepends=('networkmanager: Bearer Management'
'tracker: Document Gallery'
'gstreamer0.10-plugins>=0.10.19: Multimedia mediaservice plugins')
source=(http://get.qt.nokia.com/qt/add-ons/$pkgname-opensource-src-$pkgver.tar.gz
use_isabspath.patch
gcc-4.7_unistd.patch
no_rpath.patch
fix_translations_install_path.patch
QTMOBILITY-790_subdirs_for_serviceframework-b90cee3.patch
Fix_metaobjectbuilder_build_errors_4.8_and_4.7-f102053.patch)
md5sums=('ea5db5a8d3dd4709c2926dceda646bd8'
'c7051d3e8c016b26ead62818e203b201'
'5ff7e6e3c53615b7f67dceaf927be406'
'98489d85f6372af60aadac6a621069c5'
'7e02a52caef126aa7e6d9559dd4c2e4d'
'0f958da15a65464cdf0d2d7e8afe563a'
'dcba6a085c4b1c2804ecf1a2df5cd35d')
build() {
cd "$srcdir/${pkgname}-opensource-src-${pkgver}"
patch -Np1 -i ../use_isabspath.patch
patch -Np1 -i ../gcc-4.7_unistd.patch
patch -Np1 -i ../no_rpath.patch
patch -Np1 -i ../fix_translations_install_path.patch
patch -Np1 -i ../QTMOBILITY-790_subdirs_for_serviceframework-b90cee3.patch
patch -Np1 -i ../Fix_metaobjectbuilder_build_errors_4.8_and_4.7-f102053.patch
./configure -prefix /usr \
-plugindir /usr/lib/qt/plugins \
-examples \
-release \
-silent
make
}
package() {
cd "$srcdir/${pkgname}-opensource-src-${pkgver}"
make INSTALL_ROOT="$pkgdir/" install
# Install docs
install -d ${pkgdir}/usr/share/doc/qt
cp -r doc/qch ${pkgdir}/usr/share/doc/qt/
install -d ${pkgdir}/usr/share/doc/qt/html/qtmobility
cp -a doc/html/* ${pkgdir}/usr/share/doc/qt/html/qtmobility
}