summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a6f845a89b226dffc057065b0cb65ade7dd0339 (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
45
46
# Maintainer: ccat3z <c0ldcat3z@gmail.com>

_kernver_base=5.7.9
_pkgbase=btintel-default-address
pkgname=${_pkgbase}-dkms
url=https://www.kernel.org
pkgver=${_kernver_base}
pkgrel=2
pkgdesc="Allow default address when setup intel bluetooth device"
arch=('i686' 'x86_64')
license=('GPL')
depends=('linux-headers' 'dkms')
source=("Makefile"
        "dkms.conf"
        "btintel.c::https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/bluetooth/btintel.c?id=refs/tags/v${_kernver_base}"
        "btusb.c::https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/bluetooth/btusb.c?id=refs/tags/v${_kernver_base}"
        "btbcm.h::https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/bluetooth/btbcm.h?id=refs/tags/v${_kernver_base}"
        "btintel.h::https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/bluetooth/btintel.h?id=refs/tags/v${_kernver_base}"
        "btrtl.h::https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/bluetooth/btrtl.h?id=refs/tags/v${_kernver_base}")
	
build() {
    cd "${srcdir}"
    sed -i '/^\s*set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);\s*$/d' *.c
}

package() {
    install -Dm644 Makefile "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/Makefile"
    install -Dm644 dkms.conf "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"
    install -Dm644 btintel.c "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/btintel.c"
    install -Dm644 btusb.c "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/btusb.c"
    install -Dm644 btbcm.h "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/btbcm.h"
    install -Dm644 btintel.h "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/btintel.h"
    install -Dm644 btrtl.h "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/btrtl.h"

    sed -e "s/@_PKGBASE@/${_pkgbase}/" \
        -e "s/@PKGVER@/${pkgver}/" \
        -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
}

md5sums=("d4023861ba05ecb47380354511ac798f"
         "aa80ec82a8d5d8cc4a39bc21930e8519"
         "108a1e8f9c203f934cce21d1afbf1215"
         "a361e3ba77f5bb3529e8cf91d7776945"
         "fa43bd03940ddcea4cb25b9b6093f79d"
         "2b9e24910307ae7f24f49ee52f7d3872"
         "7bfcbbb31de44d4fcaf7d3a73f1d9181")