-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD
31 lines (27 loc) · 937 Bytes
/
PKGBUILD
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
# Maintainer: Justin Weiss <justin at justinweiss dot com>
# Maintainer: Antheas Kapenekakis <aur at antheas dot dev>
_pkgbase=bmi260
pkgname=${_pkgbase}-dkms
pkgver=0.0.1
pkgrel=1
pkgdesc="Driver for the Bosch BMI260 IMU. Provided as a DKMS module."
arch=(any)
url="https://github.com/hhd-dev/bmi260"
license=('GPL2')
depends=(dkms)
makedepends=(git)
provides=("bmi260=${pkgver}-${pkgrel}")
_tag=1d5925d688e0f1fe8b99cc3e0039b6496eca082d
source=(git+"${url}".git#tag=${_tag}
'dkms.conf')
sha256sums=('SKIP'
'a7234c31281bb83c382a1d94b4d8843a55d681c6b894d033b2840d008ba84606')
package() {
install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
cd "${srcdir}"/"${_pkgbase}"
# Set name and version
sed -e "s/@_PKGBASE@/${_pkgbase}/" \
-e "s/@PKGVER@/${pkgver}/" \
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
cp -r *.{c,h} Makefile "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
}