# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/desklet-sudoku/desklet-sudoku-0.3.ebuild,v 1.7 2010/05/08 22:19:25 nixphoeni Exp $ DN="Sudoku" DESKLET_NAME="${DN}" inherit gdesklets S="${WORKDIR}" DESCRIPTION="A small Sudoku board with support for downloading boards from websudoku.com" HOMEPAGE="http://archive.gdesklets.info/" SRC_URI="http://archive.gdesklets.info/${MY_P}.tar.gz" LICENSE="as-is" KEYWORDS="~ia64 ~ppc ~x86 ~amd64" src_install() { DESKLET_NAME="${DN}" unset CONTROL_NAME cd "${WORKDIR}/Displays/${DESKLET_NAME}" gdesklets_src_install CONTROL_NAME="${DN}" unset DESKLET_NAME cd "${WORKDIR}/controls/${CONTROL_NAME}" gdesklets_src_install } pkg_postinst() { DESKLET_NAME="${DN}" unset CONTROL_NAME gdesklets_pkg_postinst CONTROL_NAME="${DN}" unset DESKLET_NAME cd "${WORKDIR}/controls/${CONTROL_NAME}" gdesklets_pkg_postinst }