summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/linux-libre-firmware/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD
new file mode 100644
index 000000000..4e622fc6c
--- /dev/null
+++ b/libre/linux-libre-firmware/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: André Silva <emulatorman@lavabit.com>
+# Contributor: 謝致邦 <Yeking@Red54.com>
+
+pkgname=linux-libre-firmware
+pkgver=3.1
+pkgrel=1
+pkgdesc='Free Firmware files for Linux-libre'
+arch=('any')
+url='http://svn.debian.org/wsvn/kernel/dists/trunk/firmware-free/'
+license=('GPL2' 'GPL3' 'MPL')
+provides=('linux-firmware=20120625'
+ '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://ftp.debian.org/debian/pool/main/f/firmware-free/firmware-free_$pkgver.tar.gz)
+md5sums=('8f111229d121f447a4b6ea58cb897e00')
+
+package() {
+ rm -r {debian,defines}
+ cd $srcdir/firmware-free/linux-free
+ rm defines
+ install -d $pkgdir/usr/share/licenses/$pkgname
+ mv LICENSE $pkgdir/usr/share/licenses/$pkgname/WHENCE
+ install -d $pkgdir/usr/lib/firmware
+ mv * $pkgdir/usr/lib/firmware
+}