PKGBUILDs/alarm/imx-vpu/PKGBUILD

47 lines
1.3 KiB
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:40:55 +00:00
# Contributor: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
2014-02-19 15:09:32 +00:00
buildarch=4
pkgname=imx-vpu
2024-06-30 11:33:07 +00:00
pkgver=5.4.39.3
pkgrel=1
2014-02-19 15:09:32 +00:00
pkgdesc="Freescale proprietary extensions for i.MX6 SoC"
url="https://community.freescale.com/docs/DOC-95560"
arch=('armv7h')
license=('proprietary')
2024-06-30 11:33:07 +00:00
source=("http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/${pkgname}-${pkgver}.bin"
'99-mxc-vpu.rules')
md5sums=('6d6302189a6704874375afe62a65def0'
2016-03-25 08:40:55 +00:00
'b749d82b96a323d8f914c63c65de9f92')
2014-02-19 15:09:32 +00:00
prepare() {
cd "${srcdir}"
2024-06-30 11:33:07 +00:00
# extract the sources
2016-03-25 08:40:55 +00:00
sh ${pkgname}-${pkgver}.bin --force --auto-accept
2014-02-19 15:09:32 +00:00
}
build() {
2016-03-25 08:40:55 +00:00
cd "${pkgname}-${pkgver}"
2024-06-30 11:33:07 +00:00
# disable -mno-omit-leaf-frame-pointer
export CFLAGS="${CFLAGS//-mno-omit-leaf-frame-pointer}"
2014-02-19 15:09:32 +00:00
export PLATFORM="IMX6Q"
make all
}
package() {
2016-03-25 08:40:55 +00:00
cd "${pkgname}-${pkgver}"
2014-02-19 15:09:32 +00:00
make DEST_DIR="${pkgdir}" install
cd "${pkgdir}"
mkdir -p opt/fsl/include opt/fsl/lib
mv usr/include/* opt/fsl/include/
mv usr/lib/* opt/fsl/lib
rm -r usr
mkdir -p "${pkgdir}/etc/ld.so.conf.d"
echo "/opt/fsl/lib" > "${pkgdir}/etc/ld.so.conf.d/$pkgname.conf"
2016-03-25 08:40:55 +00:00
install -D -m0644 "${srcdir}/${pkgname}-${pkgver}/COPYING" "$pkgdir/opt/fsl/licenses/LICENSE.${pkgname}"
2014-02-19 15:09:32 +00:00
install -D -m0644 "${srcdir}/99-mxc-vpu.rules" "${pkgdir}/usr/lib/udev/rules.d/99-mxc-vpu.rules"
}