summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/ath9k-htc-firmware/PKGBUILD15
1 files changed, 7 insertions, 8 deletions
diff --git a/libre/ath9k-htc-firmware/PKGBUILD b/libre/ath9k-htc-firmware/PKGBUILD
index f712395f4..ad545e899 100644
--- a/libre/ath9k-htc-firmware/PKGBUILD
+++ b/libre/ath9k-htc-firmware/PKGBUILD
@@ -14,11 +14,8 @@ md5sums=('SKIP')
prepare() {
- # create firmware folder to put the free firmware files there
- install -d -m755 $pkgdir/usr/lib/firmware
-
cd $srcdir/open-ath9k-htc-firmware/target_firmware
- mkdir -p build/{k2,magpie} $pkgdir/usr/lib/firmware
+ mkdir -p build/{k2,magpie}
}
@@ -109,16 +106,18 @@ 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/target_firmware
# move firmware files to firmware folder
cp build/{k2,magpie}/htc_*.fw $pkgdir/usr/lib/firmware
- # create licenses folder to put the licenses files there
+ # create license folder to put the license file there
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
+ # put LICENSE.TXT from ath9k-htc firmware to license folder
+ install -m644 $srcdir/open-ath9k-htc-firmware/LICENCE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENCE
}