# Maintainer: Spencer Bull <spencerbull2554@gmail.com>

pkgname=dell-xps13-sidecar-amps
pkgver=1.0.0
pkgrel=2
pkgdesc="Temporary sidecar speaker amplifier enablement for the Dell XPS 13 DX13260"
arch=('x86_64')
url="https://github.com/omacom-io/omarchy-pkgs"
license=('MIT')
depends=('kmod' 'mkinitcpio')
optdepends=('limine-mkinitcpio-hook: rebuild Limine Unified Kernel Images')
install=dell-xps13-sidecar-amps.install
options=('!debug')
source=(
  'dell-xps13-sidecar-amps-apply'
  'dell-xps13-sidecar-amps.conf'
  'dell-xps13-sidecar-amps.install'
  'LICENSE'
  'README.md'
)
sha256sums=('ec5484486468c483b5a5acc50cd5a0dc5f368425c84bb88cddc95debe71d357e'
            'dcef05d30c15b70943e621325d813980894c4c9d646aafe645e73e194f47f9d7'
            '5573370afad9ce25e9b11501154d231e062f2d90f4a99b775bef69b6c736d35c'
            'fd9348252dda847b9b4c19e44c5ab101098c7d0470c2238857ce1e14bb63207b'
            '82685711fcbe32bec70faa0aaf65032e0c0be4b6c8796123c171e1d7865e7771')

package() {
  install -Dm755 dell-xps13-sidecar-amps-apply \
    "${pkgdir}/usr/bin/dell-xps13-sidecar-amps-apply"
  install -Dm644 dell-xps13-sidecar-amps.conf \
    "${pkgdir}/usr/lib/modprobe.d/dell-xps13-sidecar-amps.conf"
  install -Dm644 LICENSE \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 README.md \
    "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
