summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8421694fb344c3a269a3a4ceb88b4215b3c0a1e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Leonardo Gates <leogatesx9r@protonmail.com>

pkgname=i915-firmware
pkgver=20191022
pkgrel=1
pkgdesc="Intel's integrated GPU firmware"
arch=('any')
url="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary"
license=('GPL2' 'GPL3' 'custom')
options=(!strip)
validpgpkeys=('4CDE8575E547BF835FE15807A31B6BD72486CFD6') # Josh Boyer <jwboyer@fedoraproject.org>
source=("https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${pkgver}.tar.gz"
        "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${pkgver}.tar.asc")
sha1sums=('a1d5004d013db94cf3779a8b268858a93b585ed4'
          'SKIP')

package() {
    conflicts=('linux-firmware'
               'linux-firmware-git')

    cd "${srcdir}/linux-firmware-${pkgver}"

    install -d -m755 "${pkgdir}/usr/lib/firmware/"
    install -d -m755 "${pkgdir}/usr/share/licenses/linux-firmware/"

    find . -maxdepth 1 -iname "*i915*" -type d -print0 | xargs -0 -I{} cp -a {} "${pkgdir}/usr/lib/firmware/"
    install -Dm644 LICEN*.i915 "${pkgdir}/usr/share/licenses/linux-firmware/"
}