# $Id$ PNAME="gnokii" PVER="0.6.27" PBUILD="r1" PCATEGORIE="app-misc" STATE="unstable" DESCRIPTION="gnokii provides tools and a user space driver for use with mobile phones." HOMEPAGE="http://www.gnokii.org/" DEPEND=">= sys-libs/readline-6 >= dev-libs/glib2-2.20 >= dev-libs/libical-0.43 >= dev-libs/libusb-0.1.12 >= x11-libs/gtk2+-2.16 >= sys-apps/pcsc-lite-1.5.3 >= net-wlan/bluez-4.41" SDEPEND=">= sys-dev/gettext-0.17 >= virtual/kernel-headers" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://www.gnokii.org/download/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-disable-database.patch mirror://${PNAME}/${PNAME}-${PVER}-icon.patch ) UP2DATE="updatecmd ${HOMEPAGE}/download/${PNAME}/ | grep ${PNAME}-[0-9] | lasttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # add --disable-{mysql,postgres) switches to configure mpatch ${PNAME}-${PVER}-disable-database.patch || die # fix icon name in desktop file mpatch ${PNAME}-${PVER}-icon.patch || die # rebuild configure autoreconf --install --force --verbose || die } src_compile() { cd ${SRCDIR} mconfigure \ --disable-fulldebug \ --disable-xdebug \ --disable-rlpdebug \ --enable-nls \ --enable-security \ --disable-unix98test \ --enable-libpcsclite \ --enable-libical \ --enable-libusb \ --enable-irda \ --enable-bluetooth \ --enable-smsd \ --with-x \ --disable-mysql \ --disable-postgres \ || die mmake || die } src_install() { cd ${SRCDIR} minstall || die # needs suid bit mchmod 4755 /usr/sbin/mgnokiidev || die # gnokii config sed -i 's:/usr/local:/usr:' Docs/sample/gnokiirc || die minstalletc Docs/sample/gnokiirc || die # missing desktop icon minstallpixmap Docs/sample/logo/gnokii.xpm xgnokii.xpm || die } postinstall() { echo echo "Make sure the user that runs gnokii has read/write access to the device" echo "which your phone is connected to." echo "The simple way of doing that is to add your user to the uucp group." echo }