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