aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetrus Zhao <petrus.zy.07@gmail.com>2020-05-27 16:20:32 +0800
committerPetrus Zhao <petrus.zy.07@gmail.com>2020-05-27 16:20:32 +0800
commit9a289e25a8c559cbec947a87b3d13c1c5117738d (patch)
tree1abf296ae5c31957a1a99c780b193aa39b8c17f9 /sys-kernel
parentnet-misc/castor: New package. (diff)
downloadguru-9a289e25a8c559cbec947a87b3d13c1c5117738d.tar.gz
guru-9a289e25a8c559cbec947a87b3d13c1c5117738d.tar.bz2
guru-9a289e25a8c559cbec947a87b3d13c1c5117738d.zip
sys-kernel/xow: fix broken ebuild
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Petrus Zhao <petrus.zy.07@gmail.com>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/xow/Manifest3
-rw-r--r--sys-kernel/xow/xow-0.4.ebuild14
2 files changed, 14 insertions, 3 deletions
diff --git a/sys-kernel/xow/Manifest b/sys-kernel/xow/Manifest
index 85a80b016..09ea85e8e 100644
--- a/sys-kernel/xow/Manifest
+++ b/sys-kernel/xow/Manifest
@@ -1 +1,2 @@
-DIST xow-0.4.tar.gz 902531 BLAKE2B 6f4e0b77241021c8d38a6f52be3d2bb681e17f5e4e642df2fffec189e955c73fc45a2b8dfb1d66af125aa69781cd9770403b3552aa66d8d63befd4f3b34827b4 SHA512 bb601a09f9b33561ba9e9bbf6bbf867a19c0023d696c75301cee115a8548edc697ad61fea5f608927024a38e0f3573116f8350104d70bf488c06bec62c75fce9
+DIST xow-0.4.tar.gz 862021 BLAKE2B 129999689e014ebeaa1f1eabc1a83743d7513d02b356d0a274202e104b0ac12621d06cb628043eac2ea779e7140166297030278d400d1b0090e953324634cb46 SHA512 2878a837de80b857b5b8be0f86804d9d7274277ea643d8f5327b90b24177815245bc283311c43b013c69afadb0892b75eb8730bf73e26e7b7d5c77d51ca3725c
+DIST xow-firmware.cab 199891 BLAKE2B f531a9f4b8220ee4501431b308ee6e29a8dea26467020df25b7fa22228543cc560e1170d13b1cb3490c64c48bf610e3fb7ddfb743e4a2028f5980e02d0c36790 SHA512 0906debd6c1f4706348ec1b1cbf233ea2c45bbc0b8882593740964036808722f5bb701f43da803320609e02072cd16dada572d337fd4c05cc1cf6dde6fd38908
diff --git a/sys-kernel/xow/xow-0.4.ebuild b/sys-kernel/xow/xow-0.4.ebuild
index a4797ad31..dc955700f 100644
--- a/sys-kernel/xow/xow-0.4.ebuild
+++ b/sys-kernel/xow/xow-0.4.ebuild
@@ -5,7 +5,8 @@ EAPI=7
DESCRIPTION="Linux driver for the Xbox One wireless dongle"
HOMEPAGE="https://github.com/medusalix/xow"
-SRC_URI="https://github.com/medusalix/xow/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/medusalix/xow/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ http://download.windowsupdate.com/c/msdownload/update/driver/drvs/2017/07/1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e.cab -> xow-firmware.cab"
LICENSE="GPL-2"
SLOT="0"
@@ -14,7 +15,16 @@ IUSE=""
DEPEND="virtual/libusb:1"
RDEPEND="${DEPEND}"
-BDEPEND=""
+BDEPEND="app-arch/cabextract"
+
+QA_EXECSTACK="bin/xow"
+
+src_prepare() {
+ cp "${DISTDIR}"/xow-firmware.cab "${S}"/driver.cab
+ sed -i '/curl/d' "${S}"/Makefile || die
+
+ default
+}
src_compile() {
emake BUILD=RELEASE