mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
31 lines
984 B
Bash
31 lines
984 B
Bash
# Maintainer: CruX <crux@project-insanity.org>
|
|
# Contributor: pepedog at archlinuxarm dot com
|
|
# Contributor: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
|
|
|
|
buildarch=4
|
|
pkgname=firmware-imx
|
|
pkgver=5.3
|
|
pkgrel=1
|
|
pkgdesc="Freescale proprietary firmware for i.MX6 SoC"
|
|
url="https://community.freescale.com/docs/DOC-95560"
|
|
arch=('armv7h')
|
|
license=('proprietay')
|
|
source=("http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/${pkgname}-${pkgver}.bin")
|
|
md5sums=('1f19ffcbd6f8c3fcde271cf6f0314836')
|
|
|
|
prepare() {
|
|
cd "${srcdir}"
|
|
#extract the firmware
|
|
sh ${pkgname}-${pkgver}.bin --force --auto-accept
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "${pkgdir}/usr/lib/firmware/vpu"
|
|
cp -r "${srcdir}/${pkgname}-${pkgver}/firmware/vpu/"* "${pkgdir}/usr/lib/firmware/vpu"
|
|
|
|
install -D -m0644 "${srcdir}/${pkgname}-${pkgver}/COPYING" "$pkgdir/opt/fsl/licenses/LICENSE.${pkgname}"
|
|
mkdir -p "${pkgdir}/etc/ld.so.conf.d"
|
|
echo "/opt/fsl/lib" > "${pkgdir}/etc/ld.so.conf.d/$pkgname.conf"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|