rts5139-20230923.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright 1999-2024 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit linux-mod-r1
  5. MODULES_KERNEL_MAX=6.9
  6. MODULES_KERNEL_MIN=3.16
  7. COMMIT="6dd73fd9f877b01ad5a0ba3e26d564384e54935f"
  8. DESCRIPTION="Driver for Realtek rts5139 USB cardreader"
  9. HOMEPAGE="https://realtek.com"
  10. SRC_URI="https://github.com/ljmf00/rts5139/archive/${COMMIT}.tar.gz"
  11. SLOT="0"
  12. LICENSE="GPL-2"
  13. KEYWORDS="amd64 x86"
  14. DEPEND="virtual/linux-sources"
  15. RDEPEND="!<sys-kernel/${P}"
  16. S="${WORKDIR}/${PN}-${COMMIT}"
  17. RESTRICT="mirror bindist"
  18. pkg_setup() {
  19. linux-mod-r1_pkg_setup
  20. CONFIG_CHECK=""
  21. }
  22. src_compile() {
  23. local modlist=( rts5139=drivers/scsi )
  24. local modargs=(
  25. KERNELDIR="${KV_OUT_DIR}"
  26. KERNELRELEASE=${KV_FULL}
  27. )
  28. linux-mod-r1_src_compile
  29. }
  30. src_install() {
  31. dodir /etc/modprobe.d/
  32. dodir /etc/dracut.conf.d/
  33. cp "${S}/blacklist-rts5139.conf" "${D}/etc/modprobe.d/" || die "Install failed!"
  34. #cp "${FILESDIR}/blacklist_rtsx.conf" "${D}/etc/dracut.conf.d/" || die "Install failed!"
  35. linux-mod-r1_src_install
  36. }