blob: a189b314b7a874b30bf170c1e5538bb51dec4f4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# $Id: PKGBUILD 179069 2013-03-02 22:41:59Z andrea $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
pkgname=qt-assistant-compat
pkgver=4.6.3
pkgrel=4
pkgdesc="compat version of Qt Assistant"
url="http://qt-project.org/"
arch=('i686' 'x86_64')
license=('GPL3' 'LGPL')
depends=('qt4')
source=('ftp://ftp.qt.nokia.com/qt/source/qt-assistant-qassistantclient-library-compat-src-4.6.3.tar.gz'
'debian_patches_01_build_system.diff')
md5sums=('a20148e0488d5c12ab35ccc107dcc64d'
'1b55290dc9fab0c035797e9301d2fa61')
# separate package function does not really work here due to broken build files
build() {
cd ${srcdir}/qt-assistant-qassistantclient-library-compat-version-${pkgver}
patch -Np1 -i ${srcdir}/debian_patches_01_build_system.diff
cd lib; if [ -e Makefile ]; then $(MAKE) distclean; fi
rm -f translations/assistant_adp_*.qm
qmake-qt4 CONFIG+=create_prl
make
cd ../translations; lrelease assistant_adp_*.ts
cd ..
qmake-qt4 CONFIG+=create_prl
make
}
package() {
cd ${srcdir}/qt-assistant-qassistantclient-library-compat-version-${pkgver}
make install INSTALL_ROOT=${pkgdir}
cd lib
make install INSTALL_ROOT=${pkgdir}
cd ..
# Fix wrong path in prl file
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" \
${pkgdir}/usr/lib/libQtAssistantClient.prl
# Install translations
install -d ${pkgdir}/usr/share/qt4/translations/
install -p -m0644 translations/assistant_adp_*.qm \
${pkgdir}/usr/share/qt4/translations/
# Install prf file
install -D -p -m0644 features/assistant.prf \
${pkgdir}/usr/share/qt4/mkspecs/features/assistant.prf
}
|