DESCRIPTION="Java-based GTD application" SRC_URI="http://www.thinkingrock.com.au/download/${PV}/tr-${PV}-linux.zip" HOMEPAGE="http://thinking-rock.com.au/" SLOT="0" LICENSE="freedist" KEYWORDS="~x86" RDEPEND=">=virtual/jre-1.5.0" DEPEND="app-arch/unzip ${RDEPEND}" src_install() { dodir /opt cp ${FILESDIR}/${PN}.sh ${S}/${PN}.sh chmod a+rx ${S}/thinking-rock.sh ${S}/xdg-* cp -a ${S} ${D}/opt # Symlink the wrapper script dosym /opt/${P}/${PN}.sh /usr/bin/${PN}.sh # Symlink the directory and the jar to have them without version number dosym /opt/${P} /opt/${PN} dosym /opt/${P}/thinking-rock-linux-${PV}.jar /opt/${P}/thinking-rock-linux.jar dodir /usr/share/pixmaps cp ${D}/opt/${P}/thinking-rock48.gif ${D}/usr/share/pixmaps/thinking-rock.gif dodir /usr/share/applications cp ${FILESDIR}/thinking-rock.desktop ${D}/usr/share/applications }