Contents of /trunk/extras/gnokii/gnokii-0.6.31-r5.smage2
Parent Directory | Revision Log
Revision 28587 -
(show annotations)
(download)
Mon Jan 2 14:39:26 2017 UTC (7 years, 8 months ago) by niro
File size: 1669 byte(s)
Mon Jan 2 14:39:26 2017 UTC (7 years, 8 months ago) by niro
File size: 1669 byte(s)
-readline-7.0 rebuild
1 | # $Id$ |
2 | |
3 | PNAME="gnokii" |
4 | PVER="0.6.31" |
5 | PBUILD="r5" |
6 | |
7 | PCAT="app-misc" |
8 | |
9 | DESCRIPTION="gnokii provides tools and a user space driver for use with mobile phones." |
10 | HOMEPAGE="http://www.gnokii.org/" |
11 | |
12 | DEPEND=">= sys-libs/readline-7.0 |
13 | >= dev-libs/glib2-2.44 |
14 | >= dev-libs/libical-1.0 |
15 | >= dev-libs/libusb-1 |
16 | >= x11-libs/gtk2+-2.24 |
17 | >= sys-apps/pcsc-lite-1.8 |
18 | >= net-wlan/bluez-5.31" |
19 | |
20 | SDEPEND=">= sys-dev/gettext-0.18 |
21 | >= dev-util/intltool-0.50 |
22 | >= virtual/kernel-headers" |
23 | |
24 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
25 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
26 | |
27 | sminclude mtools mbuild |
28 | |
29 | SRC_URI=( |
30 | http://www.gnokii.org/download/${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}/${SRCFILE} |
32 | ) |
33 | |
34 | UP2DATE="updatecmd ${HOMEPAGE}/download/${PNAME}/ | grep ${PNAME}-[0-9] | lasttarball" |
35 | |
36 | src_compile() |
37 | { |
38 | cd ${SRCDIR} |
39 | |
40 | mconfigure \ |
41 | --disable-fulldebug \ |
42 | --disable-xdebug \ |
43 | --disable-rlpdebug \ |
44 | --enable-nls \ |
45 | --enable-security \ |
46 | --disable-unix98test \ |
47 | --enable-libpcsclite \ |
48 | --enable-libical \ |
49 | --enable-libusb \ |
50 | --enable-irda \ |
51 | --enable-bluetooth \ |
52 | --enable-smsd \ |
53 | --with-x \ |
54 | --disable-mysql \ |
55 | --disable-postgres \ |
56 | || die |
57 | |
58 | mmake || die |
59 | } |
60 | |
61 | src_install() |
62 | { |
63 | cd ${SRCDIR} |
64 | minstall || die |
65 | |
66 | # needs suid bit |
67 | mchmod 4755 /usr/sbin/mgnokiidev || die |
68 | |
69 | # gnokii config |
70 | sed -i 's:/usr/local:/usr:' Docs/sample/gnokiirc || die |
71 | minstalletc Docs/sample/gnokiirc || die |
72 | |
73 | # missing desktop icon |
74 | minstallpixmap Docs/sample/logo/gnokii.xpm xgnokii.xpm || die |
75 | } |
76 | |
77 | postinstall() |
78 | { |
79 | echo |
80 | echo "Make sure the user that runs gnokii has read/write access to the device" |
81 | echo "which your phone is connected to." |
82 | echo "The simple way of doing that is to add your user to the uucp group." |
83 | echo |
84 | } |