1 # Contributor: Darwin Bautista <djclue917@gmail.com>
2 # Contributor Stefan Husmann <stefan-husmann@t-online.de>
7 pkgdesc="Alternative frontend for Gnokii written in QT3"
9 url="http://qgnokii.sourceforge.net/"
11 depends=('gnokii' 'qt3')
12 install=qgnokii.install
13 source=(http://downloads.sourceforge.net/sourceforge/qgnokii/${pkgname}-${pkgver}.tar.gz \
16 qgnokii-0.4.2-string_h.patch gcc4.4.1.patch)
17 md5sums=('6eadde2786620cf9d2f9ec251553a04b' '58b4f076b9bef873930cac13d485d445'\
18 'f88d4b31d006f62f22a4e169d9ad2692' 'd6bf38ca11ca2f152d7b9c56357a2e53'\
19 '38d0702cb70d5c3aef2cb356b9fc4f9b')
22 cd ${srcdir}/${pkgname}-${pkgver}/
24 patch -Np1 -i ../qgnokii-0.4.2-string_h.patch || return 1
25 patch -Np1 -i ../gcc4.4.1.patch || return 1
26 # Source the QT profile
27 [ -f /etc/profile.d/qt.sh ] && source /etc/profile.d/qt.sh
31 gcc ${CFLAGS} qgnokiid.c -o qgnokiid -lgnokii
34 install -D -m755 qgnokii ${pkgdir}/usr/bin/qgnokii
35 install -D -m755 qgnokiid ${pkgdir}/usr/bin/qgnokiid
37 install -D -m755 ../qgnokii.sh ${pkgdir}/etc/profile.d/qgnokii.sh
39 # Install menu shortcut
40 install -D -m644 ../qgnokii.desktop ${pkgdir}/usr/share/applications/qgnokii.desktop
43 install -D -m644 helpfile ${pkgdir}/usr/share/qgnokii/helpfile
44 ln -s /usr/share/licenses/common/GPL/license.txt ${pkgdir}/usr/share/qgnokii/LICENSE