From 28529fefc594bf968ca30905a5a2d6c9ae1d6f3c Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sat, 23 Aug 2014 01:36:15 -0300 Subject: add modifications from coadde and lukeshu contributions for linux-libre* and dependencies --- libre/linux-libre-firmware/PKGBUILD | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to 'libre/linux-libre-firmware') 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 # Contributor: Márcio Silva +# Contributor: Luke Shumaker 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 } -- cgit v1.2.3