updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / linux-firmware-git / PKGBUILD
blob703271ee7fad7c0b43f6d4b6e8f557bd7176b4df
1 # Based on linux-firmware by Thomas Bächler <thomas@archlinux.org>
2 # Maintainer: xduugu
3 pkgname=linux-firmware-git
4 pkgver=20111025
5 pkgrel=1
6 pkgdesc="Firmware files for Linux"
7 arch=('any')
8 url="http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=summary"
9 license=('GPL2' 'GPL3' 'custom')
10 makedepends=('git')
11 conflicts=('linux-firmware'
12            'kernel26-firmware'
13            'ar9170-fw'
14            'carl9170-fw'
15            'iwlwifi-1000-ucode'
16            'iwlwifi-3945-ucode'
17            'iwlwifi-4965-ucode'
18            'iwlwifi-5000-ucode'
19            'iwlwifi-5150-ucode'
20            'iwlwifi-6000-ucode'
21            'rt2870usb-fw'
22            'rt2x00-rt61-fw'
23            'rt2x00-rt71w-fw')
24 provides=("linux-firmware=$pkgver")
25 options=(!strip)
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"
35 build() {
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."
41   else
42     git clone "$_gitroot" "$_gitname"
43   fi
45   msg "GIT checkout done or server timeout"
48 package() {
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
56   #local i
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/"
59   #done
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: