summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24c5110684f636fb5f52d0b2e3110099d79adfc4 (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
37
# Maintainer: Alexandre Bouvier <contact@amb.tf>
pkgname=(mn8847{2,3}-firmware)
_pkgver=170427
pkgver=6.427.2017
pkgrel=1
arch=('any')
url="http://www.astrometa.com.tw/"
license=('unknown')
groups=('dvb-firmware')
makedepends=('p7zip')
source=("https://dl.dropbox.com/s/ffckhetzp3vmjio/AMDVBT2_Setup_$_pkgver.exe")
b2sums=('b8027cd4715b3c9c08827dd30e99b69b6b2b8cd45ccd35ac01bac527eaa5cbf09219dc4b2515b1635ada690d4b845db0b12d12aaf1be57117b6a8222f81464c1')

prepare() {
	7z x AMDVBT2_Setup_$_pkgver.exe
	tail -c +220369 X64/AMDVBT2BDA.sys | head -c 2005 > dvb-demod-mn88472-02.fw
	tail -c +222385 X64/AMDVBT2BDA.sys | head -c 2271 > dvb-demod-mn88473-01.fw
	xz -C crc32 -k -- *.fw
}

check() {
	echo 088b891ac9273ff8c6818fca27b24d81 dvb-demod-mn88472-02.fw | md5sum -c
	echo bdb15b2311581db4c8411fca5e4ce3ce dvb-demod-mn88473-01.fw | md5sum -c
}

package_mn88472-firmware() {
	pkgdesc="Firmware for Panasonic MN88472 DVB-T/T2/C demodulator"

	# shellcheck disable=SC2154
	install -Dm644 -t "$pkgdir"/usr/lib/firmware dvb-demod-mn88472-02.fw.xz
}

package_mn88473-firmware() {
	pkgdesc="Firmware for Panasonic MN88473 DVB-T/T2/C demodulator"

	install -Dm644 -t "$pkgdir"/usr/lib/firmware dvb-demod-mn88473-01.fw.xz
}