blob: dc2b3bccc49f10ef33bce0fdd753cde327e044a2 (
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
|
# Maintainer: Yarema aka Knedlyk <yupadmin@gmail.com>
pkgname=rtl8761usb
pkgver=20200610
pkgrel=3
pkgdesc="Realtek bluetooth modules for RTL8761 usb based devices"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://www.xmpow.com/pages/download"
license=('unknown')
#source=("https://mpow.s3-us-west-1.amazonaws.com/${pkgver}_mpow_BH456A_driver+for+Linux.7z")
source=("https://archive.org/download/mpow_mpbh456ab_driverforlinux/mpow_MPBH456AB_driver%2Bfor%2BLinux.tgz")
conflicts=('rtl8761b-fw')
depends=('linux')
makedepends=('linux-headers')
install=depmod.install
prepare() {
cd ${pkgver}_LINUX_BT_DRIVER
sed -i 's/=\ \/lib/=\ \.\/lib/g' Makefile
sed -i 's/=\ \/lib/=\ \.\.\/lib/g' */Makefile
sed -i 's/depmod/\# depmod/g' */Makefile
sed -i 's/rmmod/\# rmmod/g' */Makefile
sed -i 's/rtk_btusb/rtl8761usb/g' Makefile
sed -i 's/rtk_btusb/rtl8761usb/g' */Makefile
sed -i 's/rtk_btusb/rtl8761usb/g' */*/Makefile
}
package() {
cd ${pkgver}_LINUX_BT_DRIVER
make install INTERFACE=usb
install -d "$pkgdir/usr/lib/"
cp -r lib/* "$pkgdir/usr/lib/"
}
sha256sums=('74001cd412363485751a8e11dda7de54919de51a74d7f060ce489d0a9291040b')
|