summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a0ebaf7b2d58f95f56049d15aadf675aa8e4031 (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
# Maintainer:
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Jesse Watson <me@9mmtylenol.me>
# Contributor: Alex Amadori <tacchinotacchi@gmail.com>

_name=rtbth-dkms
pkgname=rtbth-dkms-git
pkgver=3.9.6.r7.gce4e65d
pkgrel=1
pkgdesc="rtbth Kernel module sources for Ralink RT3290 bluetooth, lomiu's solution."
arch=('i686' 'x86_64')
url='http://www.mediatek.com/'
license=('mixed')
depends=('dkms')
optdepends=('bluez: Canonical implementation of bluetooth protocol'
'bluez-utils: Utilities for Bluez')
conflicts=('rtbth-dkms')
provides=('rtbth')
install='rtbth-dkms.install'
source=('git+https://github.com/loimu/rtbth-dkms.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_name"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/$_name"
  mkdir -p "${pkgdir}"/usr/bin
  mkdir -p "${pkgdir}"/usr/src
  mkdir -p "${pkgdir}"/etc/modprobe.d/
  cp -r ./ "${pkgdir}/usr/src/${provides}-${pkgver}"
  cp tools/rtbt "${pkgdir}"/usr/bin/rtbt
  cp tools/ralink-bt.conf "${pkgdir}"/etc/modprobe.d/ralink-bt.conf
}