summaryrefslogtreecommitdiff
path: root/sys-kernel/rtl8821cu-dkms/rtl8821cu-dkms-5.8.1.ebuild
blob: 52a102b2829f02dbd07eac859c9acafdfc207d06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
inherit eutils git-r3

DESCRIPTION="Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux"
HOMEPAGE="https://github.com/brektrou/rtl8821CU"

EGIT_REPO_URI="https://github.com/brektrou/rtl8821CU.git"
EGIT_BRANCH="5.8.1"

LICENSE="GPL-2"
KEYWORDS="amd64"
SLOT="0"
RESTRICT="mirror"

DEPEND="sys-kernel/dkms"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${P}"

src_prepare() {
	cp "${FILESDIR}"/dkms.conf "${S}" || die
}

src_compile(){
	:
}

src_install() {
	dodir usr/src/${P}
	insinto usr/src/${P}
	doins -r "${S}"/*
}

pkg_postinst() {
	dkms add ${PN}/${PV}
}

pkg_prerm() {
	dkms remove ${PN}/${PV} --all
}