# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" inherit autotools eutils linux-mod DESCRIPTION="Driver for Realtek 5289 Card Reader" SRC_URI="https://bugs.launchpad.net/bugs/971876/+attachment/2991730/+files/rts_bpp.tar.bz2" HOMEPAGE="https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/971876" KEYWORDS="-* ~x86 ~amd64" SLOT="0" LICENSE="GPL-1" IUSE="" S="${WORKDIR}/rts_bpp" src_prepare() { epatch "${FILESDIR}"/install.patch if use amd64 ; then ARCH="x86_64" fi } pkg_setup() { linux-mod_pkg_setup } src_compile() { emake -j1 || die } src_install () { mkdir -p "${D}lib/modules/${KV_FULL}/kernel/drivers/scsi" emake DESTDIR="${D}" install } pkg_postinst() { depmod -a }