updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / qgnokii / PKGBUILD
blob809ca874ce7b9f6b8de57e0f873183943bff4a58
1 # Contributor: Darwin Bautista <djclue917@gmail.com>
2 # Contributor Stefan Husmann <stefan-husmann@t-online.de>
4 pkgname=qgnokii
5 pkgver=0.4.2
6 pkgrel=6
7 pkgdesc="Alternative frontend for Gnokii written in QT3"
8 arch=('i686' 'x86_64')
9 url="http://qgnokii.sourceforge.net/"
10 license="GPL"
11 depends=('gnokii' 'qt3')
12 install=qgnokii.install
13 source=(http://downloads.sourceforge.net/sourceforge/qgnokii/${pkgname}-${pkgver}.tar.gz \
14         qgnokii.desktop \
15         qgnokii.sh \
16         qgnokii-0.4.2-string_h.patch gcc4.4.1.patch)
17 md5sums=('6eadde2786620cf9d2f9ec251553a04b' '58b4f076b9bef873930cac13d485d445'\
18          'f88d4b31d006f62f22a4e169d9ad2692' 'd6bf38ca11ca2f152d7b9c56357a2e53'\
19          '38d0702cb70d5c3aef2cb356b9fc4f9b')
21 build() {
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
29   ${QTDIR}/bin/qmake
30   make || return 1
31   gcc ${CFLAGS} qgnokiid.c -o qgnokiid -lgnokii
33   # Install binaries
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
42   # Install needed docs
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