Magellan Linux

Contents of /trunk/extras/gnokii/gnokii-0.6.27-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2051 - (show annotations) (download)
Fri Jun 12 21:01:30 2009 UTC (14 years, 11 months ago) by niro
File size: 2064 byte(s)
auto added: ver bump to 0.6.27-r1
1 # $Id$
2
3 PNAME="gnokii"
4 PVER="0.6.27"
5 PBUILD="r1"
6
7 PCATEGORIE="app-misc"
8 STATE="unstable"
9
10 DESCRIPTION="gnokii provides tools and a user space driver for use with mobile phones."
11 HOMEPAGE="http://www.gnokii.org/"
12
13 DEPEND=">= dev-libs/glib2-2.20
14 >= dev-libs/libical-0.43
15 >= dev-libs/libusb-0.1.12
16 >= x11-libs/gtk2+-2.16
17 >= sys-apps/pcsc-lite-1.5.3
18 >= net-wlan/bluez-4.41"
19
20 SDEPEND=">= sys-dev/gettext-0.17
21 >= virtual/kernel-headers"
22
23 SRCFILE="${PNAME}-${PVER}.tar.bz2"
24 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25
26 sminclude mtools
27
28 SRC_URI=(
29 http://www.gnokii.org/download/${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${SRCFILE}
31 mirror://${PNAME}/${PNAME}-${PVER}-disable-database.patch
32 mirror://${PNAME}/${PNAME}-${PVER}-icon.patch
33 )
34
35 UP2DATE="updatecmd ${HOMEPAGE}/download/${PNAME}/ | grep ${PNAME}-[0-9] | lasttarball"
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40 cd ${SRCDIR}
41
42 # add --disable-{mysql,postgres) switches to configure
43 mpatch ${PNAME}-${PVER}-disable-database.patch || die
44
45 # fix icon name in desktop file
46 mpatch ${PNAME}-${PVER}-icon.patch || die
47
48 # rebuild configure
49 autoreconf --install --force --verbose || die
50 }
51
52 src_compile()
53 {
54 cd ${SRCDIR}
55
56 mconfigure \
57 --disable-fulldebug \
58 --disable-xdebug \
59 --disable-rlpdebug \
60 --enable-nls \
61 --enable-security \
62 --disable-unix98test \
63 --enable-libpcsclite \
64 --enable-libical \
65 --enable-libusb \
66 --enable-irda \
67 --enable-bluetooth \
68 --enable-smsd \
69 --with-x \
70 --disable-mysql \
71 --disable-postgres \
72 || die
73
74 mmake || die
75 }
76
77 src_install()
78 {
79 cd ${SRCDIR}
80 minstall || die
81
82 # needs suid bit
83 mchmod 4755 /usr/sbin/mgnokiidev || die
84
85 # gnokii config
86 sed -i 's:/usr/local:/usr:' Docs/sample/gnokiirc || die
87 minstalletc Docs/sample/gnokiirc || die
88
89 # missing desktop icon
90 minstallpixmap Docs/sample/logo/gnokii.xpm xgnokii.xpm || die
91 }
92
93 postinstall()
94 {
95 echo
96 echo "Make sure the user that runs gnokii has read/write access to the device"
97 echo "which your phone is connected to."
98 echo "The simple way of doing that is to add your user to the uucp group."
99 echo
100 }

Properties

Name Value
svn:keywords Id