diff options
author | Jesse Watson | 2016-11-11 23:10:25 -0500 |
---|---|---|
committer | Jesse Watson | 2016-11-11 23:10:25 -0500 |
commit | 7f6e6f660412cb88310a92aa9d1e10a4477d67ca (patch) | |
tree | 99dea52318d3018a5b22215d740eba07e1473412 | |
download | aur-7f6e6f660412cb88310a92aa9d1e10a4477d67ca.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | rtbth-dkms.install | 16 |
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..54d1d2f074bc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = rtbth-dkms-git + pkgdesc = rtbth Kernel module sources for Ralink RT3290 bluetooth, lomiu's solution. + pkgver = 3.9.4.4_8aa074e + pkgrel = 1 + url = http://www.mediatek.com/ + install = rtbth-dkms.install + arch = i686 + arch = x86_64 + license = mixed + depends = dkms + optdepends = bluez: Canonical implementation of bluetooth protocol + optdepends = bluez-utils: Utilities for Bluez + provides = rtbth + conflicts = rtbth-dkms + source = git+https://github.com/loimu/rtbth-dkms.git + md5sums = SKIP + +pkgname = rtbth-dkms-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..42e89c6f4a3e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Jesse Watson <me@9mmtylenol.me> +# PKGBUILD: Alex Amadori <tacchinotacchi@gmail.com> + +_name=rtbth-dkms +pkgname=rtbth-dkms-git +pkgver=3.9.4.4_8aa074e +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') + +prepare() { +cd "${srcdir}/${_name}" +} + +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 +} diff --git a/rtbth-dkms.install b/rtbth-dkms.install new file mode 100644 index 000000000000..0134e16dea67 --- /dev/null +++ b/rtbth-dkms.install @@ -0,0 +1,16 @@ + +post_install() { + dkms install -m rtbth/${1%-*} +} + +pre_upgrade() { + pre_remove ${2} +} + +post_upgrade() { + post_install ${1} +} + +pre_remove() { + dkms remove -m rtbth/${1%-*} --all +} |