-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1162 from aplund/g2d
Add alarm/gpu-viv-g2d: Vivante G2D package
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Derived from the gpu-viv-mx6q-bin PKGBUILD | ||
|
||
buildarch=4 | ||
pkgname=gpu-viv-g2d | ||
pkgver=3.10.17_1.0.2 | ||
_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=('82d1418c06ca46e4e51deea2749c14d8') | ||
|
||
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" | ||
} |