diff options
author | Nicolás Reynolds <fauno@parabola.nu> | 2013-07-03 10:33:32 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@parabola.nu> | 2013-07-03 10:33:32 -0300 |
commit | 8647aee53c2f9f5458e57fe7ac212da40a555594 (patch) | |
tree | b99a8fbc859d18a244ea5ac496083e66ffaa330d /libre/linux-libre-firmware | |
parent | 3a14409a347f3423bf2a4ab847edff625b671e20 (diff) | |
parent | 0a5c7083d197551290bc762f4ba90210cb733a5e (diff) | |
download | abslibre-8647aee53c2f9f5458e57fe7ac212da40a555594.tar.gz abslibre-8647aee53c2f9f5458e57fe7ac212da40a555594.tar.bz2 abslibre-8647aee53c2f9f5458e57fe7ac212da40a555594.zip |
Merge branch 'master' of vparabola:abslibre
Conflicts:
java/not-working/java-bnd/PKGBUILD
libre/parabola-keyring/PKGBUILD
Diffstat (limited to 'libre/linux-libre-firmware')
-rw-r--r-- | libre/linux-libre-firmware/PKGBUILD | 60 |
1 files changed, 52 insertions, 8 deletions
diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 99c54a1b2..4b46592d0 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -3,11 +3,13 @@ pkgname=linux-libre-firmware pkgver=3.9 -pkgrel=1 +pkgrel=2 pkgdesc='Free firmware files for Linux-libre' arch=('any') -url='http://linux-libre.fsfla.org/' -license=('GPL2') +url=('http://linux-libre.fsfla.org/' + 'http://wireless.kernel.org/en/users/Drivers/ath9k_htc') +license=('GPL2' 'BSD') +makedepends=('git' 'wget') provides=('linux-firmware' 'kernel26-firmware=2.6.34.99') conflicts=('linux-firmware' @@ -35,15 +37,57 @@ replaces=('linux-firmware' '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') +source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux-libre-$pkgver-gnu.tar.xz" + "git://github.com/qca/open-ath9k-htc-firmware") +md5sums=('120df29f88622dabf7015a22c7cc8e25' + 'SKIP') + +prepare() { + + cd $srcdir/open-ath9k-htc-firmware + + # disable build error + sed -i 's|GMP,|GMP,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; + s|MPFR,|MPFR,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; + s|MPC,|MPC,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; + s|BINUTILS,|BINUTILS,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; + s|GCC,|GCC,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; + ' Makefile + + # prepare toolchain to compile ath9k-htc firmware + make toolchain + +} + +build() { + + cd $srcdir/open-ath9k-htc-firmware + + # create firmware folder to put the free firmware files there + mkdir -p $pkgdir/usr/lib/firmware + + # compile ath9k-htc-firmware + make -C target_firmware + + mv htc_{7010,9271}.fw $pkgdir/usr/lib/firmware -package() { cd $srcdir/linux-$pkgver - + + # compile free firmware files of linux-libre source code make INSTALL_FW_PATH=$pkgdir/usr/lib/firmware firmware_install - # move WHENCE file to linux-firmware license folder +} + +package() { + install -d -m755 $pkgdir/usr/share/licenses/$pkgname + + # move LICENSE.TXT from ath9k-htc firmware to linux-firmware license folder + cd $srcdir/open-ath9k-htc-firmware-1.3.2 + mv LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENCE.atheros_firmware + + # move WHENCE file to linux-firmware license folder + cd $srcdir/linux-$pkgver mv firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname + } |