summaryrefslogtreecommitdiff
path: root/libre/linux-libre-firmware
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-23 01:36:15 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-23 01:36:15 -0300
commit28529fefc594bf968ca30905a5a2d6c9ae1d6f3c (patch)
tree4c2428f259eb8d14153d27c38659293f4a970f03 /libre/linux-libre-firmware
parentb1852341008bbce6f23ebc4c300112d98c96ab8d (diff)
downloadabslibre-28529fefc594bf968ca30905a5a2d6c9ae1d6f3c.tar.gz
abslibre-28529fefc594bf968ca30905a5a2d6c9ae1d6f3c.tar.bz2
abslibre-28529fefc594bf968ca30905a5a2d6c9ae1d6f3c.zip
add modifications from coadde and lukeshu contributions for linux-libre* and dependencies
Diffstat (limited to 'libre/linux-libre-firmware')
-rw-r--r--libre/linux-libre-firmware/PKGBUILD28
1 files changed, 11 insertions, 17 deletions
diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD
index 6f11508e9..7634b5110 100644
--- a/libre/linux-libre-firmware/PKGBUILD
+++ b/libre/linux-libre-firmware/PKGBUILD
@@ -1,10 +1,14 @@
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
pkgname=linux-libre-firmware
-pkgver=3.16
+_pkgver=3.16-gnu
+
+_srcname=linux-${_pkgver%-*}
+pkgver=${_pkgver//-/.}
pkgrel=1
-pkgdesc='Free firmware files for Linux-libre'
+pkgdesc='Firmware files for Linux-libre'
arch=('any')
url=('http://linux-libre.fsfla.org/')
license=('GPL2')
@@ -38,24 +42,14 @@ replaces=('linux-firmware'
'rt2x00-rt61-fw'
'rt2x00-rt71w-fw'
'amd-ucode')
-source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux-libre-$pkgver-gnu.tar.xz")
+source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/linux-libre-${_pkgver}.tar.xz")
sha256sums=('9c2a524c901febe0f0138f702bfdeb52d6f79f22c1fdbabaa37580bc70f16218')
package() {
+ cd "${srcdir}/${_srcname}"
- # create firmware folder to put the free firmware files there
- install -d -m755 $pkgdir/usr/lib/firmware
-
- cd $srcdir/linux-$pkgver
-
- # compile free firmware files
- make INSTALL_FW_PATH=$pkgdir/usr/lib/firmware firmware_install
-
- # create licenses folder to put the licenses files there
- install -d -m755 $pkgdir/usr/share/licenses/$pkgname
-
- # move WHENCE file to linux-firmware license folder
- cd $srcdir/linux-$pkgver
- install -m644 firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname
+ install -d -m755 "$pkgdir"/usr/lib/firmware
+ make INSTALL_FW_PATH="$pkgdir"/usr/lib/firmware firmware_install
+ install -Dm644 firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname
}