# $Id PNAME="sqlitebrowser" PVER="1.3" PBUILD="r4" PCATEGORIE="dev-db" STATE="unstable" DESCRIPTION="SQLite Database browser is a light GUI editor for SQLite databases, built on top of QT3." HOMEPAGE="http://sourceforge.net/projects/sqlitebrowser/" DEPEND=">= dev-db/sqlite-3" SRCFILE="${PNAME}-${PVER}-src.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}" sminclude mtools xdg qt3 SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_sourceforge ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix compilation against glibc >=2.10 sed -i 's:getline:sqlbrowser_getline:' sqlitebrowser/sqlbrowser_util.c || die } src_compile() { cd ${SRCDIR} ${QMAKE} || die mmake all || die } src_install() { cd ${SRCDIR} minstallexec ${PNAME}/${PNAME} || die minstallpixmap ${PNAME}/images/icone16.png ${PNAME}.png || die minstall_desktop_icon --categories Development || die }