jobcomm/aic94xx-firmware/PKGBUILD

38 lines
1.5 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 |---------------------------------------
_fwname=aic94xx
pkgname=${_fwname}-firmware
pkgver=30
pkgrel=011
pkgdesc="Adaptec SAS 44300, 48300, 58300 Sequencer Firmware for AIC94xx driver"
url="https://storage.microsemi.com/en-us/speed/scsi/linux/${_fwname}-seq-${pkgver}-1_tar_gz.php"
source=("${_fwname}-seq-${pkgver}-1.tar.gz::https://download.adaptec.com/scsi/linux/${_fwname}-seq-${pkgver}-1.tar.gz"
"LICENSE.${_fwname}")
build() {
bsdtar xvf "${_fwname}_seq-${pkgver}-1.noarch.rpm"
chmod 644 "${srcdir}/lib/firmware/${_fwname}-seq.fw"
}
package() {
install -Dm644 "${srcdir}/lib/firmware/${_fwname}-seq.fw" "${pkgdir}/usr/lib/firmware/${_fwname}-seq.fw"
install -Dm644 "${srcdir}/LICENSE.${_fwname}" "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.${_fwname}"
install -Dm644 "${srcdir}/README-94xx.pdf" "${pkgdir}/usr/share/doc/${pkgname}/README-94xx.pdf"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('custom')
sha256sums=(0608a919b95e65e8fe3c0cbc15f7e559716bda39a6efca863417a65f75e15478 # aic94xx-seq-30-1.tar.gz
6e0dd2831a66437e87659ed31384f11bdc7720bc539d2efa063fbb7f4ac0e46c) # LICENSE.aic94xx
## b3bff82ffb65d870a51192c22da57f3fbfdfc7b19ee963574204a4844424a1ba aic94xx-firmware-30-011-x86_64.pkg.tar.lz