lwfinger / rtw89-BT

Out-of-kernel driver for Realtek BT devices found in rtw89 devides.
67 stars 9 forks source link

AUR package #8

Closed nut-3 closed 1 year ago

nut-3 commented 1 year ago

Hello and thanks for the amazing work with this repository! I was able to revive BT adapter of my Xiaomi RedmiBook 16' radeon edition with the help of these drivers. It would be great if there is an aur package for dkms driver made from this repo. So may I submit it to aur registry? Or can someone of maintainers do it? Here is working version of PKGBUILD:

# Maintainer: Some Person <some-mail (at)some-domain(dot)com>

pkgname=rtw89bt-dkms-git
pkgver=5.15.0.r18.g7a6abee
pkgrel=1
pkgdesc="Out-of-kernel driver for Realtek BT devices found in rtw89 devices (8852AE, RTW8852BE, RTW8852CE)"
arch=('i686' 'x86_64')
url="https://github.com/lwfinger/rtw89-BT"
license=('GPL2')
depends=('dkms' 'bc' 'linux>=5.15.0' 'linux-headers')
makedepends=('git')
conflicts=("${pkgname}")
source=("git+https://github.com/lwfinger/rtw89-BT.git")
sha256sums=('SKIP')
pkgver() {
    cd ${srcdir}/rtw89-BT
    printf '%s.r%s.g%s' '5.15.0' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd ${srcdir}/rtw89-BT
    mkdir -p ${pkgdir}/usr/src/${pkgname}-${pkgver}
    cp -pr * ${pkgdir}/usr/src/${pkgname}-${pkgver}
    cp ${srcdir}/rtw89-BT/debian/rtw89bt-dkms.dkms ${pkgdir}/usr/src/${pkgname}-${pkgver}/dkms.conf
}
lwfinger commented 1 year ago

You can submit it. I do not plan to do it.

nut-3 commented 1 year ago

Package is published https://aur.archlinux.org/packages/rtw89bt-dkms-git