Browse Source

ath9k-htc-firmware-1.4.0-7: adapt package to be FHS compliant

tags/milky-way/v0.3
André Silva 1 year ago
parent
commit
1d81abbf48
1 changed files with 7 additions and 16 deletions
  1. +7
    -16
      ath9k-htc-firmware/PKGBUILD

+ 7
- 16
ath9k-htc-firmware/PKGBUILD View File

@@ -3,11 +3,11 @@

pkgname=ath9k-htc-firmware
pkgver=1.4.0
pkgrel=6
pkgrel=7
pkgdesc='Firmware files for Qualcomm Atheros AR7010 and AR9271 USB 802.11n NICs'
arch=('any')
url='https://wireless.wiki.kernel.org/en/users/Drivers/ath9k_htc'
license=('BSD3')
license=('Clear-BSD')
groups=('kernel-firmware')
conflicts=('linux-firmware' 'linux-firmware-git' 'linux-libre-firmware')
makedepends=('cmake' 'xtensa-unknown-elf-binutils' 'xtensa-unknown-elf-gcc')
@@ -17,7 +17,6 @@ sha512sums=('d4cc848e356676b4d8cc3196d3559e8a3451f609ffbd260882c9325781576fbbbf7
'7eb41fc4f87dad9e7c4f8cd7a992535846c76b1e6ca93c816ee47a7219b66eaee70987a1ef3abc71f381861f0caff7985c5a9f45aefd96022e1b23c06eb9a2b6')

prepare() {

cd $srcdir/open-ath9k-htc-firmware-$pkgver/target_firmware
mkdir -p build/{k2,magpie}

@@ -26,7 +25,6 @@ prepare() {
}

build() {

cd $srcdir/open-ath9k-htc-firmware-$pkgver

export CTARGET="xtensa-unknown-elf"
@@ -62,19 +60,12 @@ EOF
}

package() {

# create firmware folder to put the free firmware files there
install -d -m755 $pkgdir/usr/lib/firmware

cd $srcdir/open-ath9k-htc-firmware-$pkgver/target_firmware

# move firmware files to firmware folder
cp build/{k2,magpie}/htc_*.fw $pkgdir/usr/lib/firmware

# create license folder to put the license file there
install -d -m755 $pkgdir/usr/share/licenses/$pkgname
# install firmware files
install -d -m755 $pkgdir/lib/firmware
install -m644 build/{k2,magpie}/htc_*.fw $pkgdir/lib/firmware

# put LICENSE to license folder
install -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname
# install license file
install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

Loading…
Cancel
Save