# Maintainer: Jimmy Van Veen

# Copy vendor-signed Qualcomm firmware named by the running device tree.

pkgname=qcom-firmware-extract
pkgver=1
pkgrel=5
pkgdesc="Copy vendor-signed Qualcomm Snapdragon firmware from the machine's Windows installation"
arch=('any')
url="https://github.com/omacom/omarchy-pkgs"
license=('GPL-2.0-or-later')
depends=('bash' 'coreutils' 'diffutils' 'findutils' 'util-linux' 'xz' 'zstd')
optdepends=('limine-mkinitcpio-hook: rebuild the boot image after installing firmware')
options=('!debug')
source=(
  'qcom-firmware-extract'
  'README.package.md'
)
sha256sums=('SKIP' 'SKIP')

package() {
  install -Dm755 qcom-firmware-extract "${pkgdir}/usr/bin/qcom-firmware-extract"
  install -Dm644 README.package.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
  install -dm755 "${pkgdir}/usr/share/${pkgname}/provided.d"
}
