blob: 491e1910a67a7f5684f8ca35d3a225aff4a69db8 (
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
31
32
33
34
35
36
|
# Maintainer: Daniel Peukert <daniel@peukert.cc>
pkgname='wd5741'
pkgver='20131220'
pkgrel='3'
pkgdesc='Firmware update utility for WD Red drives'
arch=('x86_64' 'i686' 'pentium4')
url='https://support-cz.wd.com/app/products/product-detailweb/p/288'
license=('LicenseRef-WDDisclaimerofLiability')
source=("$pkgname-$pkgver.zip::https://downloads.wdc.com/sata/${pkgname^^}v4.zip")
sha512sums=('cc81b0f1ea0e92042b870d8484449d30a89b4d55230d24944f560a0cfb8fbd34cb754bd719cf5593ba79d022ef50718b8c4d9c37381d752e141d6e3c90b1f3f9')
_sourcedirectory="$_projectname-$pkgver"
case "$CARCH" in
i686|pentium4)
_binaryname="${pkgname}x32"
;;
*)
_binaryname="${pkgname}x64"
;;
esac
prepare() {
chmod +x "$srcdir/$_binaryname"
}
check() {
_checkoutput="$("$srcdir/$_binaryname" -? || :)"
printf '%s\n' "$_checkoutput"
printf '%s\n' "$_checkoutput" | grep -q "^${pkgname^^} Version"
}
package() {
install -Dm755 "$srcdir/$_binaryname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 'Disclaimer of Liability - As-Is.txt' "$pkgdir/usr/share/licenses/$pkgname/WDDisclaimerofLiability"
}
|