1 # Based on linux-firmware by Thomas Bächler <thomas@archlinux.org>
3 pkgname=linux-firmware-git
6 pkgdesc="Firmware files for Linux"
8 url="http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=summary"
9 license=('GPL2' 'GPL3' 'custom')
11 conflicts=('linux-firmware'
24 provides=("linux-firmware=$pkgver")
26 #source=(http://www.kernel.org/pub/linux/kernel/people/chr/carl9170/fw/1.9.2/carl9170-1.fw)
27 source=(http://distfiles.lesslinux.org/carl9170-1.fw)
28 md5sums=('9e33ac39dcd610aa1ad80bbf4f1abccf')
29 sha256sums=('0009861c6ed9943b014dc45b6df5532616b41223f067d20b4df7aaa5a437f4f5')
31 _gitroot="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git"
32 #_gitroot="git://git.infradead.org/users/dwmw2/linux-firmware.git"
33 _gitname="linux-firmware"
36 msg "Connecting to GIT server...."
38 if [[ -d $_gitname ]] ; then
39 cd "$_gitname" && git checkout master && git pull origin
40 msg "The local files are updated."
42 git clone "$_gitroot" "$_gitname"
45 msg "GIT checkout done or server timeout"
49 cd "$srcdir/$_gitname"
50 install -dm755 "$pkgdir/lib/firmware" "$pkgdir/usr/share/licenses/$pkgname"
51 cp -a * "$pkgdir/lib/firmware/"
52 install -Dm644 "$srcdir/carl9170-1.fw" "$pkgdir/lib/firmware/carl9170-1.fw"
54 # get missing firmware from kernel branch
55 #git checkout -q origin/from-kernel
57 #for i in $(git diff origin/master origin/from-kernel --diff-filter=A --name-only); do
58 #cp -a --parents "$i" "$pkgdir/lib/firmware/"
61 rm -f "$pkgdir/lib/firmware/GPL"*
62 mv "$pkgdir/lib/firmware"/{LICEN*,WHENCE} "$pkgdir/usr/share/licenses/$pkgname/"
65 # vim:set ts=2 sw=2 et: