summaryrefslogtreecommitdiff
path: root/libre/linux-libre-firmware/PKGBUILD
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-07-04 00:21:12 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-07-04 00:21:12 -0300
commit3fcc9fad9a6411bc01dd2aa083a7cc8407155495 (patch)
tree1d2aca4225e0fe3a4d211b20454a60c98c959eeb /libre/linux-libre-firmware/PKGBUILD
parent27de30007e987b9c3911198da203a853dabc13d1 (diff)
parent011045738754104f603135f0e6cc5518cde0864d (diff)
downloadabslibre-3fcc9fad9a6411bc01dd2aa083a7cc8407155495.tar.gz
abslibre-3fcc9fad9a6411bc01dd2aa083a7cc8407155495.tar.bz2
abslibre-3fcc9fad9a6411bc01dd2aa083a7cc8407155495.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/linux-libre-firmware/PKGBUILD')
-rw-r--r--libre/linux-libre-firmware/PKGBUILD33
1 files changed, 9 insertions, 24 deletions
diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD
index 4b46592d0..eb82af49b 100644
--- a/libre/linux-libre-firmware/PKGBUILD
+++ b/libre/linux-libre-firmware/PKGBUILD
@@ -2,14 +2,15 @@
# Contributor: Márcio Silva <coadde@lavabit.com>
pkgname=linux-libre-firmware
-pkgver=3.9
-pkgrel=2
+_pkgver=3.9
+pkgver=$(LC_ALL=C date -u +%Y%m%d)
+pkgrel=1
pkgdesc='Free firmware files for Linux-libre'
arch=('any')
url=('http://linux-libre.fsfla.org/'
'http://wireless.kernel.org/en/users/Drivers/ath9k_htc')
license=('GPL2' 'BSD')
-makedepends=('git' 'wget')
+makedepends=('git' 'xtensa-unknown-elf-gcc')
provides=('linux-firmware'
'kernel26-firmware=2.6.34.99')
conflicts=('linux-firmware'
@@ -37,41 +38,24 @@ 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"
+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
+ install -d -m755 $pkgdir/usr/lib/firmware
# compile ath9k-htc-firmware
make -C target_firmware
mv htc_{7010,9271}.fw $pkgdir/usr/lib/firmware
- cd $srcdir/linux-$pkgver
+ cd $srcdir/linux-$_pkgver
# compile free firmware files of linux-libre source code
make INSTALL_FW_PATH=$pkgdir/usr/lib/firmware firmware_install
@@ -80,6 +64,7 @@ build() {
package() {
+ # create licenses folder to put the licenses files there
install -d -m755 $pkgdir/usr/share/licenses/$pkgname
# move LICENSE.TXT from ath9k-htc firmware to linux-firmware license folder
@@ -87,7 +72,7 @@ package() {
mv LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENCE.atheros_firmware
# move WHENCE file to linux-firmware license folder
- cd $srcdir/linux-$pkgver
+ cd $srcdir/linux-$_pkgver
mv firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname
}