summaryrefslogtreecommitdiff
path: root/libre/linux-libre-firmware
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre-firmware')
-rw-r--r--libre/linux-libre-firmware/PKGBUILD20
-rw-r--r--libre/linux-libre-firmware/parabola-LICENSE.patch13
2 files changed, 25 insertions, 8 deletions
diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD
index 4e622fc6c..67063054f 100644
--- a/libre/linux-libre-firmware/PKGBUILD
+++ b/libre/linux-libre-firmware/PKGBUILD
@@ -35,15 +35,19 @@ replaces=('linux-firmware'
'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')
+source=("http://ftp.debian.org/debian/pool/main/f/firmware-free/firmware-free_$pkgver.tar.gz"
+ 'parabola-LICENSE.patch')
+md5sums=('8f111229d121f447a4b6ea58cb897e00'
+ '3aaa2d5530c3c9518ae02978204a83ff')
package() {
- rm -r {debian,defines}
- cd $srcdir/firmware-free/linux-free
+ cd "$srcdir/firmware-free"
+ patch -Np1 -i "$srcdir/parabola-LICENSE.patch"
+ rm -r "$srcdir/firmware-free/"{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
+ install -d -m755 "$pkgdir/usr/lib/firmware"
+ cp -a * "$pkgdir/usr/lib/firmware"
+ install -d -m755 "$pkgdir/usr/share/licenses/$pkgname"
+ mv "${pkgdir}/usr/lib/firmware/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/WHENCE"
}
diff --git a/libre/linux-libre-firmware/parabola-LICENSE.patch b/libre/linux-libre-firmware/parabola-LICENSE.patch
new file mode 100644
index 000000000..6d0a4f6f3
--- /dev/null
+++ b/libre/linux-libre-firmware/parabola-LICENSE.patch
@@ -0,0 +1,13 @@
+diff -Nur firmware-free.orig/linux-free/LICENSE firmware-free/linux-free/LICENSE
+--- firmware-free.orig/linux-free/LICENSE 2012-06-17 00:06:50.000000000 -0300
++++ firmware-free/linux-free/LICENSE 2012-10-09 14:45:23.836344258 -0200
+@@ -149,6 +149,6 @@
+
+ --------------------------------------------------------------------------
+
+-On Debian systems the text of the GPL version 2 can be found in
+-/usr/share/common-licenses/GPL-2, and the text of the GPL version 3
+-can be found in /usr/share/common-licenses/GPL-3.
++On Parabola GNU/Linux-libre the text of the GPL version 2 can be found in
++/usr/share/licenses/common/GPL2, and the text of the GPL version 3
++can be found in /usr/share/licenses/common/GPL3.