mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
Add alarm/gpu-viv-g2d: Vivante G2D package
This commit is contained in:
parent
2d20e0809b
commit
dce7eac84d
1 changed files with 35 additions and 0 deletions
35
alarm/gpu-viv-g2d/PKGBUILD
Normal file
35
alarm/gpu-viv-g2d/PKGBUILD
Normal file
|
@ -0,0 +1,35 @@
|
|||
# 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"
|
||||
}
|
Loading…
Reference in a new issue