summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8c0330997effcd72daec47958196e2ff07b2ce0 (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
pkgname=xradio-git
pkgver=r103.9d27fae
pkgver() {
	cd "$srcdir/xradio"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
pkgrel=1
pkgdesc="Port Allwinner xradio driver to mainline Linux"
arch=(armv7h)
url="https://github.com/fifteenhex/xradio.git"
license=('GPL')
depends=()
makedepends=('git' 'linux-headers')
source=("git+https://github.com/fifteenhex/xradio.git")
md5sums=('SKIP')

#_KVER=4.10.4-1-ARCH
_KVER=$(uname -r)

build() {
	cd "xradio"
	make -C /lib/modules/${_KVER}/build M=$PWD modules
}

package() {
	cd "xradio"
	make -C /lib/modules/${_KVER}/build M=$PWD INSTALL_MOD_PATH="$pkgdir" modules_install
}