jobcomm/linux-firmware-iwlwifi/PKGBUILD
Joe Bo Run 2db872c9b2 upg sdl12-compat brave
rm sdl
add linux-firmwara-iwlwifi
2022-12-16 00:18:15 +02:00

64 lines
1.9 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=linux-firmware-iwlwifi
_pkgname=linux-firmware-iwlwifi-git
pkgver=r2171.8d8c6e9
pkgrel=02
pkgdesc="iwlwifi firmware files for linux"
makedepends=('git')
arch=('any')
url="git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git"
conflicts=('linux-firmware-iwlwifi-git'
'linux-firmware-git'
'linux-firmware'
'kernel26-firmware'
'ar9170-fw'
'iwlwifi-1000-ucode'
'iwlwifi-3945-ucode'
'iwlwifi-4965-ucode'
'iwlwifi-5000-ucode'
'iwlwifi-5150-ucode'
'iwlwifi-6000-ucode'
'rt2870usb-fw'
'rt2x00-rt61-fw'
'rt2x00-rt71w-fw'
'amd-ucode')
provides=("linux-firmware=$pkgver")
options=(!strip)
source=("$_pkgname::git+https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git")
pkgver() {
cd ${_pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
#check() {
# cd ${_pkgname}
# make check
#}
package() {
cd ${_pkgname}
make install DESTDIR="${pkgdir}" FIRMWAREDIR=/usr/lib/firmware
install -d "${pkgdir}/usr/share/licenses/linux-firmware"
install -Dm644 LICEN* WHENCE "${pkgdir}/usr/share/licenses/linux-firmware/"
# Trigger a microcode reload for configurations not using early updates
echo 'w /sys/devices/system/cpu/microcode/reload - - - - 1' |
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
}
#---- license gpg-key sha256sums ----
license=('GPL2' 'GPL3' 'custom')
sha256sums=('SKIP')