summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5fa3f2cc302e4e51821729d9f4b0ed1a4e44e6ba (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
29
30
# Maintainer: Mijail Rondon Viloria (mijailr)
# Special thanks: Fademind, pedrogabriel

pkgname=wd719x-firmware
pkgver=1
pkgrel=7
pkgdesc="Driver for Western Digital WD7193, WD7197 and WD7296 SCSI cards"
url="https://github.com/mijailr/wd719x-firmware"
license=('unknown')
makedepends=('lha')
arch=('any')
conflicts=()
replaces=()
backup=()
source=('https://github.com/mijailr/wd719x-firmware/raw/master/pciscsi.exe')
sha256sums=('d310338eaaeae6db3673021c0ec2ec23b9cfb9f9b9d1eb8854d2d60b3a6490f9')
noextract=('pciscsi.exe')

build() {
        lha l --convert-filename-case pciscsi.exe 2> /dev/null && local lha_opts="--convert-filename-case"
        lha xi $lha_opts pciscsi.exe pci-scsi.exe
        lha xi $lha_opts pci-scsi.exe nt/wd7296a.sys
        dd if=wd7296a.sys of=wd719x-risc.bin bs=1 skip=5760 count=14336
        dd if=wd7296a.sys of=wd719x-wcs.bin bs=1 skip=20096 count=514
}

package() {
        install -Dm644 $srcdir/wd719x-risc.bin $pkgdir/usr/lib/firmware/wd719x-risc.bin
        install -Dm644 $srcdir/wd719x-wcs.bin $pkgdir/usr/lib/firmware/wd719x-wcs.bin
}