PKGBUILDs/alarm/firmware-imx/PKGBUILD

32 lines
984 B
Bash
Raw Normal View History

2014-02-19 15:09:32 +00:00
# Maintainer: CruX <crux@project-insanity.org>
# Contributor: pepedog at archlinuxarm dot com
2016-03-25 08:39:57 +00:00
# Contributor: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
2014-02-19 15:09:32 +00:00
buildarch=4
pkgname=firmware-imx
2016-12-30 07:00:19 +00:00
pkgver=5.4
pkgrel=1
2014-02-19 15:09:32 +00:00
pkgdesc="Freescale proprietary firmware for i.MX6 SoC"
url="https://community.freescale.com/docs/DOC-95560"
arch=('armv7h')
license=('proprietay')
2016-03-25 08:39:57 +00:00
source=("http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/${pkgname}-${pkgver}.bin")
2016-12-30 07:00:19 +00:00
md5sums=('dae846ca2fc4504067f725f501491adf')
2014-02-19 15:09:32 +00:00
prepare() {
cd "${srcdir}"
#extract the firmware
2016-03-25 08:39:57 +00:00
sh ${pkgname}-${pkgver}.bin --force --auto-accept
2014-02-19 15:09:32 +00:00
}
package() {
mkdir -p "${pkgdir}/usr/lib/firmware/vpu"
2016-03-25 08:39:57 +00:00
cp -r "${srcdir}/${pkgname}-${pkgver}/firmware/vpu/"* "${pkgdir}/usr/lib/firmware/vpu"
2014-02-19 15:09:32 +00:00
2016-03-25 08:39:57 +00:00
install -D -m0644 "${srcdir}/${pkgname}-${pkgver}/COPYING" "$pkgdir/opt/fsl/licenses/LICENSE.${pkgname}"
2014-02-19 15:09:32 +00:00
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: