PKGBUILDs/alarm/marvell-libgfx/PKGBUILD

40 lines
1.5 KiB
Bash
Raw Normal View History

2012-06-05 22:16:01 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
2012-06-05 21:38:49 +00:00
# Armada 510/Dove graphics libraries
buildarch=4
pkgname="marvell-libgfx"
pkgver=0.2.0
2012-06-05 23:28:46 +00:00
pkgrel=3
2012-06-05 21:38:49 +00:00
arch=('armv7h')
url="http://archlinuxarm.org"
license=('Proprietary')
2012-06-05 23:28:46 +00:00
source=("http://archlinuxarm.org/builder/src/marvell-libgfx-0.2.0.tar.gz"
"http://archlinuxarm.org/builder/src/gc3184-gcc-4.6-armv7-hard_release.zip")
2012-06-05 21:38:49 +00:00
package() {
pkgdesc="Armada 510/Dove graphics Libraries"
cd "${srcdir}/${pkgname}-${pkgver}/bin"
mkdir -p "${pkgdir}/usr/lib"
mkdir -p "${pkgdir}/usr/include"
2012-06-05 22:41:04 +00:00
cp libGAL.so.1 libgcu.so.1 libOpenVG.so.1 libVDK.so.1 libGLES_CM.so.1 libGLESv2SC.so.1 libGLESv2x.so.1 "${pkgdir}/usr/lib"
2012-06-05 21:38:49 +00:00
ln -s /usr/lib/libGAL.so.1 "${pkgdir}/usr/lib/libGAL.so"
ln -s /usr/lib/libgcu.so.1 "${pkgdir}/usr/lib/libgcu.so"
ln -s /usr/lib/libOpenVG.so.1 "${pkgdir}/usr/lib/libOpenVG.so"
ln -s /usr/lib/libVDK.so.1 "${pkgdir}/usr/lib/libVDK.so"
2012-06-05 22:41:04 +00:00
ln -s /usr/lib/libGLES_CM.so.1 "${pkgdir}/usr/lib/libGLES_CM.so"
ln -s /usr/lib/libGLESv2SC.so.1 "${pkgdir}/usr/lib/libGLESv2SC.so"
ln -s /usr/lib/libGLESv2x.so.1 "${pkgdir}/usr/lib/libGLESv2x.so"
2012-06-05 21:38:49 +00:00
cd "${srcdir}/${pkgname}-${pkgver}/include"
cp -r gcu.h vdk.h vdkTypes.h HAL VG "${pkgdir}/usr/include"
2012-06-05 23:28:46 +00:00
cp "${srcdir}"/gc3184-gcc-4.6-armv7-hard_release/sdk/drivers/{libVIVANTE,libGLES_CL}.so "${pkgdir}/usr/lib"
mkdir -p "${pkgdir}/usr/include/KHR/"
cp "${srcdir}/gc3184-gcc-4.6-armv7-hard_release/sdk/include/KHR/khrvivante.h" "${pkgdir}/usr/include/KHR/"
2012-06-05 21:38:49 +00:00
}
2012-06-05 22:41:04 +00:00
2012-06-05 23:28:46 +00:00
md5sums=('6cd584e6feb6a8605662bb2280676f65'
'0d1a842ebb9d9bd1c198950bfe5c04f5')