New package: linux-firmware-dvb-20170329

This commit is contained in:
Jürgen Buchmüller 2018-02-26 20:29:26 +01:00
parent a510a07bfb
commit 68e798541b

View file

@ -0,0 +1,206 @@
# Template file for 'linux-firmware-dvb'
pkgname=linux-firmware-dvb
version=20170329
revision=1
_gitrev=3fef04a4a4bfeba88ae3b20aff9d3a1fabf1c159
short_desc="Linux TV firmware packae"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2 Custom"
homepage="https://linuxtv.org/"
noarch=yes
distfiles="
https://github.com/OpenELEC/dvb-firmware/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz
https://linuxtv.org/downloads/firmware/dvb-firmwares.tar.bz2"
checksum="
69448effa96ec0a0777923b68820dd139720f48295aad6a4aea384c0def464a3
788a3c5aa77a9a3069e2b60e2502acd417c6e97cdb8f8bf9502aa0c2a4244b5f"
do_extract() {
mkdir -p ${wrksrc}
tar xvf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.gz \
--strip-components=2 -C ${wrksrc}
tar xvf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/dvb-firmwares.tar.bz2 \
-C ${wrksrc}
}
do_build() {
:
}
do_install() {
local dir f licenses firmwares
licenses+=" LICENCE.go7007"
licenses+=" LICENCE.siano"
licenses+=" LICENCE.xc5000"
licenses+=" LICENSE.dib0700"
firmwares+=" NXP7164-2010-03-10.1.fw"
firmwares+=" NXP7164-2010-04-01.1.fw"
licenses+=" README.as102"
firmwares+=" af9005.fw"
firmwares+=" as102_data1_st.hex"
firmwares+=" as102_data2_st.hex"
firmwares+=" bootcode.bin"
firmwares+=" cmmb_vega_12mhz.inp"
firmwares+=" cmmb_venice_12mhz.inp"
firmwares+=" drxd-a2-1.1.fw"
firmwares+=" drxd-b1-1.1.fw"
firmwares+=" drxk_a3.mc"
firmwares+=" dspbootcode.bin"
firmwares+=" dvb-demod-drxk-01.fw"
firmwares+=" dvb-demod-drxk-pctv.fw"
firmwares+=" dvb-demod-m88ds3103.fw"
firmwares+=" dvb-demod-m88rs6000.fw"
firmwares+=" dvb-demod-mn88473-01.fw"
firmwares+=" dvb-demod-si2168-02.fw"
firmwares+=" dvb-demod-si2168-a20-01.fw"
firmwares+=" dvb-demod-si2168-a30-01.fw"
firmwares+=" dvb-demod-si2168-b40-01.fw"
firmwares+=" dvb-fe-af9013.fw"
firmwares+=" dvb-fe-bcm3510-01.fw"
firmwares+=" dvb-fe-cx24116.fw"
firmwares+=" dvb-fe-cx24117.fw"
firmwares+=" dvb-fe-cx24120-1.20.58.2.fw"
firmwares+=" dvb-fe-drxj-mc-1.0.8.fw"
firmwares+=" dvb-fe-drxj-mc-vsb-1.0.8.fw"
firmwares+=" dvb-fe-drxj-mc-vsb-qam-1.0.8.fw"
firmwares+=" dvb-fe-ds3000.fw"
firmwares+=" dvb-fe-ds300x.fw"
firmwares+=" dvb-fe-ds3103.fw"
firmwares+=" dvb-fe-mxl5xx.fw"
firmwares+=" dvb-fe-nxt2004.fw"
firmwares+=" dvb-fe-or51132-qam.fw"
firmwares+=" dvb-fe-or51132-vsb.fw"
firmwares+=" dvb-fe-or51211.fw"
firmwares+=" dvb-fe-rs6000.fw"
firmwares+=" dvb-fe-tda10045.fw"
firmwares+=" dvb-fe-tda10046.fw"
firmwares+=" dvb-fe-tda10048-1.0.fw"
firmwares+=" dvb-fe-tda10071.fw"
firmwares+=" dvb-fe-xc4000-1.4.1.fw"
firmwares+=" dvb-fe-xc4000-1.4.fw"
firmwares+=" dvb-fe-xc5000-1.6.114.fw"
firmwares+=" dvb-fe-xc5000c-4.1.30.7.fw"
rm -f dvb-firmwares.tar.bz2
firmwares+=" dvb-ttpci-01.fw"
firmwares+=" dvb-ttpci-01.fw-261a"
firmwares+=" dvb-ttpci-01.fw-261b"
firmwares+=" dvb-ttpci-01.fw-261c"
firmwares+=" dvb-ttpci-01.fw-261d"
firmwares+=" dvb-ttpci-01.fw-261f"
firmwares+=" dvb-ttpci-01.fw-2622"
firmwares+=" dvb-tuner-si2158-a20-01.fw"
firmwares+=" dvb-usb-SkyStar_USB_HD_FW_v17_63.HEX.fw"
licenses+=" dvb-usb-SkyStar_USB_HD_FW_v17_63.HEX.fw.license.txt"
firmwares+=" dvb-usb-af9015.fw"
firmwares+=" dvb-usb-af9035-02.fw"
firmwares+=" dvb-usb-af9035-03.fw"
firmwares+=" dvb-usb-af9035-04.fw"
firmwares+=" dvb-usb-avertv-a800-02.fw"
firmwares+=" dvb-usb-az6027-03.fw"
firmwares+=" dvb-usb-bluebird-01.fw"
firmwares+=" dvb-usb-bluebird-02.fw"
firmwares+=" dvb-usb-dib0700-1.20.fw"
firmwares+=" dvb-usb-dibusb-5.0.0.11.fw"
firmwares+=" dvb-usb-dibusb-6.0.0.8.fw"
firmwares+=" dvb-usb-dtt200u-01.fw"
firmwares+=" dvb-usb-dw2102.fw"
firmwares+=" dvb-usb-dw2104.fw"
firmwares+=" dvb-usb-dw3101.fw"
firmwares+=" dvb-usb-ec168.fw"
firmwares+=" dvb-usb-gp8psk-01.fw"
firmwares+=" dvb-usb-gp8psk-02.fw"
firmwares+=" dvb-usb-hauppauge-hvr930c-drxk.fw"
firmwares+=" dvb-usb-it9135-01.fw"
firmwares+=" dvb-usb-it9135-02.fw"
firmwares+=" dvb-usb-it9137-01.fw"
firmwares+=" dvb-usb-it9303-01.fw"
firmwares+=" dvb-usb-nova-t-usb2-02.fw"
firmwares+=" dvb-usb-p7500.fw"
firmwares+=" dvb-usb-pctv-400e-01.fw"
firmwares+=" dvb-usb-pctv-450e-01.fw"
firmwares+=" dvb-usb-pctv-452e-01.fw"
firmwares+=" dvb-usb-s630.fw"
firmwares+=" dvb-usb-s660.fw"
firmwares+=" dvb-usb-terratec-h5-drxk.fw"
firmwares+=" dvb-usb-terratec-h7-az6007.fw"
firmwares+=" dvb-usb-terratec-h7-drxk.fw"
firmwares+=" dvb-usb-terratec-htc-stick-drxk.fw"
firmwares+=" dvb-usb-tt-s2400-01.fw"
firmwares+=" dvb-usb-umt-010-02.fw"
firmwares+=" dvb-usb-vp702x-01.fw"
firmwares+=" dvb-usb-vp7045-01.fw"
firmwares+=" dvb-usb-wt220u-01.fw"
firmwares+=" dvb-usb-wt220u-02.fw"
firmwares+=" dvb-usb-wt220u-fc03.fw"
firmwares+=" dvb-usb-wt220u-miglia-01.fw"
firmwares+=" dvb-usb-wt220u-zl0353-01.fw"
firmwares+=" dvb_nova_12mhz.inp"
firmwares+=" dvb_nova_12mhz_b0.inp"
firmwares+=" dvb_rio.inp"
firmwares+=" go7007/go7007fw.bin"
firmwares+=" go7007/lr192.fw"
firmwares+=" go7007/px-m402u.fw"
firmwares+=" go7007/px-tv402u.fw"
firmwares+=" go7007/s2250-1.fw"
firmwares+=" go7007/s2250-2.fw"
firmwares+=" go7007/wis-startrek.fw"
firmwares+=" isdbt_nova_12mhz.inp"
firmwares+=" isdbt_nova_12mhz_b0.inp"
firmwares+=" isdbt_rio.inp"
firmwares+=" lgs8g75.fw"
licenses+=" license-end-user.txt"
licenses+=" license-oemihvisv.txt"
firmwares+=" ngene_15.fw"
firmwares+=" ngene_16.fw"
firmwares+=" ngene_17.fw"
firmwares+=" ngene_18.fw"
firmwares+=" s2250.fw"
firmwares+=" s2250_loader.fw"
firmwares+=" sms1xxx-hcw-114xxx-cmmb-01.fw"
firmwares+=" sms1xxx-hcw-55xxx-dvbt-01.fw"
firmwares+=" sms1xxx-hcw-55xxx-dvbt-02.fw"
firmwares+=" sms1xxx-hcw-55xxx-dvbt-03.fw"
firmwares+=" sms1xxx-hcw-55xxx-isdbt-02.fw"
firmwares+=" sms1xxx-hcw-55xxx-isdbt-03.fw"
firmwares+=" sms1xxx-nova-a-dvbt-01.fw"
firmwares+=" sms1xxx-nova-b-dvbt-01.fw"
firmwares+=" sms1xxx-stellar-dvbt-01.fw"
firmwares+=" tdmb_nova_12mhz.inp"
firmwares+=" tlg2300_firmware.bin"
firmwares+=" ttusb-budget/dspbootcode.bin"
firmwares+=" v4l-cx231xx-avcore-01.fw"
firmwares+=" v4l-cx23418-apu.fw"
firmwares+=" v4l-cx23418-cpu.fw"
firmwares+=" v4l-cx23418-dig.fw"
firmwares+=" v4l-cx2341x-dec.fw"
firmwares+=" v4l-cx2341x-enc.fw"
firmwares+=" v4l-cx2341x-init.mpg"
firmwares+=" v4l-cx23885-avcore-01.fw"
firmwares+=" v4l-cx23885-enc-broken.fw"
firmwares+=" v4l-cx23885-enc.fw"
firmwares+=" v4l-cx25840.fw"
firmwares+=" v4l-pvrusb2-24xxx-01.fw"
firmwares+=" v4l-pvrusb2-29xxx-01.fw"
firmwares+=" v4l-pvrusb2-73xxx-01.fw"
firmwares+=" xc3028-v24.fw"
firmwares+=" xc3028-v27.fw"
firmwares+=" xc3028L-v36.fw"
firmwares+=" xc4000-1.4.fw"
# Install licenses
for f in ${licenses}; do
vlicense ${f}
done
# Install firmwares
for f in ${firmwares}; do
file=${f##*/}
if [ "${file}" != "${f}" ]; then
dir=${f%/*}
vinstall ${f} 0644 usr/lib/firmware/${dir}
else
vinstall ${f} 0644 usr/lib/firmware
fi
done
}