PKGBUILDs/alarm/odroid-xu3-libgl/PKGBUILD

51 lines
1.5 KiB
Bash
Raw Normal View History

2015-08-06 04:10:17 +00:00
# ODROID-XU3/XU4 Mali GL Driver
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgbase=odroid-xu3-libgl
pkgname=("${pkgbase}-x11" "${pkgbase}-fb" "${pkgbase}-headers")
2016-10-12 00:23:23 +00:00
pkgver=r14p0
2017-01-21 18:56:40 +00:00
pkgrel=2
_commit=04f078e70fd62a49bc1eeec2434e802d29119797
2015-08-06 04:10:17 +00:00
arch=('armv7h')
url="http://www.hardkernel.com/"
license=('Proprietary')
depends=('mesa-libgl')
makedepends=('git')
source=("git+https://github.com/mdrjr/5422_mali.git#commit=${_commit}"
'mali-xu3.conf')
md5sums=('SKIP'
'40f5104200cfceb12b4623d219646d4e')
package_odroid-xu3-libgl-x11() {
pkgdesc="ODROID-XU3/XU4 Mali driver (X11)"
conflicts=('odroid-xu3-libgl')
provides=('odroid-xu3-libgl')
install -d "${pkgdir}"/usr/lib/mali-egl
install -d "${pkgdir}"/etc/ld.so.conf.d
cp -a 5422_mali/x11/lib* "${pkgdir}"/usr/lib/mali-egl
cp "${srcdir}"/mali-xu3.conf "${pkgdir}"/etc/ld.so.conf.d
}
package_odroid-xu3-libgl-fb() {
pkgdesc="ODROID-XU3/XU4 Mali driver (framebuffer)"
conflicts=('odroid-xu3-libgl')
provides=('odroid-xu3-libgl')
install -d "${pkgdir}"/usr/lib/mali-egl
install -d "${pkgdir}"/etc/ld.so.conf.d
cp -a 5422_mali/fbdev/lib* "${pkgdir}"/usr/lib/mali-egl
cp "${srcdir}"/mali-xu3.conf "${pkgdir}"/etc/ld.so.conf.d
}
package_odroid-xu3-libgl-headers() {
pkgdesc="ODROID-XU3/XU4 Mali driver headers"
conflicts=('opencl-headers')
provides=('opencl-headers')
install -d "${pkgdir}"/usr/include
2016-01-16 03:37:54 +00:00
cp -a 5422_mali/headers/CL{,_1_2,_2_0} "${pkgdir}"/usr/include
2015-08-06 04:10:17 +00:00
}