summaryrefslogtreecommitdiff
path: root/libre-testing/linux-libre-firmware/PKGBUILD
blob: 99c54a1b216e85a7199ad8cd2b74176a418a7547 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: André Silva <emulatorman@lavabit.com>
# Contributor: Márcio Silva <coadde@lavabit.com>

pkgname=linux-libre-firmware
pkgver=3.9
pkgrel=1
pkgdesc='Free firmware files for Linux-libre'
arch=('any')
url='http://linux-libre.fsfla.org/'
license=('GPL2')
provides=('linux-firmware'
          'kernel26-firmware=2.6.34.99')
conflicts=('linux-firmware'
           'linux-firmware-git'
           'kernel26-firmware'
           'ar9170-fw'
           'iwlwifi-1000-ucode'
           'iwlwifi-3945-ucode'
           'iwlwifi-4965-ucode'
           'iwlwifi-5000-ucode'
           'iwlwifi-5150-ucode'
           'iwlwifi-6000-ucode'
           'rt2870usb-fw'
           'rt2x00-rt61-fw'
           'rt2x00-rt71w-fw')
replaces=('linux-firmware'
          'kernel26-firmware'
          'ar9170-fw'
          'iwlwifi-1000-ucode'
          'iwlwifi-3945-ucode'
          'iwlwifi-4965-ucode'
          'iwlwifi-5000-ucode'
          'iwlwifi-5150-ucode'
          'iwlwifi-6000-ucode'
          'rt2870usb-fw'
          'rt2x00-rt61-fw'
          'rt2x00-rt71w-fw')
source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux-libre-$pkgver-gnu.tar.xz")
md5sums=('120df29f88622dabf7015a22c7cc8e25')

package() {
  cd $srcdir/linux-$pkgver
  
  make INSTALL_FW_PATH=$pkgdir/usr/lib/firmware firmware_install

  # move WHENCE file to linux-firmware license folder
  install -d -m755 $pkgdir/usr/share/licenses/$pkgname
  mv firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname
}