summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cee6dfd7eed8ac0db8fc10729479da44b6551790 (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
# Maintainer: Pedro Gabriel Drumond Pereira (pedrogabriel)
# Special thanks: Fademind

pkgname=wd719x-firmware
pkgver=1
pkgrel=4
pkgdesc="Driver for Western Digital WD7193, WD7197 and WD7296 SCSI cards"
url="http://support.wdc.com/product/download.asp?groupid=801&sid=27&lang=en"
license=('unknown')
makedepends=('lha')
arch=('any')
conflicts=()
replaces=()
backup=()
md5sums=('c5f7dc52c96e606e403751a4c482d785')
source=('https://web.archive.org/web/20150802061047/http://support.wdc.com/download/archive/pciscsi.exe')
noextract=('pciscsi.exe')

build() {
        lha xi pciscsi.exe pci-scsi.exe
        lha xi 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
}