talimat 689 B

123456789101112131415161718192021222324252627282930
  1. # Description: The linux kernel firmware set of files. More and more hardware requires this package
  2. # Depends on: git
  3. name=linux-firmware
  4. version=20150207
  5. release=1
  6. build() {
  7. git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git \
  8. firmware
  9. find firmware -name '*.c' \
  10. -or -name '*.h' \
  11. -or -name '*.asm' \
  12. -or -name 'Makefile' \
  13. -or -name 'configure' \
  14. -or -name '*.S' \
  15. -or -name "README" \
  16. -or -name '*.pl' \
  17. -or -name '*.pst' \
  18. -or -name '*.txt' | xargs rm -rv
  19. find firmware \( -type d -and -empty \) | xargs rm -rv
  20. rm -rf firmware/cis/src
  21. rm -rf firmware/usbdux
  22. rm -rf firmware/carl9170fw
  23. rm -rf firmware/.git
  24. mkdir $PKG/lib
  25. cp -a firmware \
  26. $PKG/lib
  27. }