# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit rpm SLOT="0" LICENSE="as-is" KEYWORDS="x86 ~x86" DESCRIPTION="Workflow software for developing RAW files from many cameras" HOMEPAGE="http://bibblelabs.com/" MY_PV="4.9.0" SRC_URI="${PN}-${MY_PV}-4.i386.rpm" RDEPEND="qt" RESTRICT="fetch" S=${WORKDIR} src_install() { into /usr dobin ${S}/usr/bin/bibblepro dodir /usr/lib/bibblelabs insinto /usr/lib/bibblelabs doins -r ${S}/usr/lib/bibblelabs/* insinto /usr/share doins -r ${S}/usr/share/* chmod a+x ${D}/usr/lib/bibblelabs/bibblepro/plugins/BBlackAndWhite.so } pkg_postinst() { # Create the env.d file. echo "LDPATH=\"${ROOT}/usr/lib/bibblelabs/bibblepro/libs\"" > ${ROOT}/etc/env.d/99bibblepro } pkg_prerm() { # Remove the env.d file. if [[ -e ${ROOT}/etc/env.d/99bibblepro ]] ; then rm -f ${ROOT}/etc/env.d/99bibblepro fi }