# $Id$ PNAME="gnokii" PVER="0.6.28" 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.22 >= dev-libs/libical-0.44 >= dev-libs/libusb-0.1.12 >= x11-libs/gtk2+-2.18 >= sys-apps/pcsc-lite-1.5.5 >= net-wlan/bluez-4.56" SDEPEND=">= sys-dev/gettext-0.17 >= virtual/kernel-headers" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools mbuild SRC_URI=( http://www.gnokii.org/download/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd ${HOMEPAGE}/download/${PNAME}/ | grep ${PNAME}-[0-9] | lasttarball" 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 }