PKGBUILDs/alarm/gpu-viv-g2d/PKGBUILD
2015-04-20 10:52:28 +10:00

35 lines
1.2 KiB
Bash

# Derived from the gpu-viv-mx6q-bin PKGBUILD
buildarch=4
pkgname=gpu-viv-g2d
pkgver=3.10.9_1.0.0
_pkgver=${pkgver//_/-}
pkgrel=1
pkgdesc="Freescale proprietary Vivante 2D graphics drivers for i.MX6 Quad SoC"
# filesystem prefix for the include files and license
_install_prefix=/opt/fsl
# filesystem prefix for the libraries
_install_exec_prefix=/opt/fsl
url="https://community.freescale.com/docs/DOC-95560"
arch=('armv7h')
license=('proprietary')
source=("http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/${pkgname}-${_pkgver}.bin")
md5sums=('SKIP')
prepare() {
cd "${srcdir}"
sh ${pkgname}-${_pkgver}.bin --force --auto-accept
sed -n '/EOEULA/,/EOEULA/p' ${pkgname}-${_pkgver}.bin | grep -v EOEULA > LICENSE.$pkgname
}
package() {
cd ${srcdir}/"${pkgname}-${_pkgver}"
mkdir -p "${pkgdir}${_install_prefix}/include" "${pkgdir}${_install_exec_prefix}/lib"
cp -r usr/include/* "${pkgdir}${_install_prefix}/include"
cp -r usr/lib/* "${pkgdir}${_install_prefix}/lib"
mkdir -p "${pkgdir}${_install_prefix}/licenses"
cp "${srcdir}/LICENSE.$pkgname" "$pkgdir${_install_prefix}/licenses"
mkdir -p "${pkgdir}/etc/ld.so.conf.d"
echo "${_install_prefix}/lib" > "${pkgdir}/etc/ld.so.conf.d/$pkgname.conf"
}