blob: 3432a22b77ec2e6ba5337131a57d3cca862a8271 (
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
|
# Maintainer: Terry Wong <terry.wong2@yahoo.com>
_repo=ideapad-laptop-tb
_module_name=ideapad-laptop-tb
pkgname=${_module_name}-dkms
pkgver=2
pkgrel=1
pkgdesc="The IdeaPad ACPI Extras kernel modules for ThinkBook 2024 NoteBooks (DKMS)"
url="https://github.com/ferstar/${_repo}"
arch=('any')
license=('GPL2')
depends=('dkms')
makedepends=('git')
provides=("${_module_name}=${pkgver}")
conflicts=("${_module_name}")
source=("git+https://github.com/ferstar/${_repo}")
sha256sums=('SKIP')
package() {
_dkms_dest="${pkgdir}"/usr/src/${_module_name}-${pkgver}
# create dkms dest dir
mkdir -p "${_dkms_dest}"
# copy sources (including Makefile)
cp -r "${srcdir}"/"${_repo}"/* "${_dkms_dest}"
# copy dkms.conf
install -Dm644 "${srcdir}"/"${_repo}"/dkms/dkms.conf "${_dkms_dest}"/dkms.conf
# update dkms package version
sed -i "s/PACKAGE_VERSION=.*/PACKAGE_VERSION=\"${pkgver}\"/g" "${_dkms_dest}"/dkms.conf
# copy module blacklist
install -Dm644 "${srcdir}"/"${_repo}"/dkms/blacklist-ideapad-laptop-tb-dkms.conf \
"${pkgdir}"/etc/modprobe.d/blacklist-ideapad-laptop-tb-dkms.conf
}
|