PKGBUILDs/alarm/odroid-c2-libgl/PKGBUILD

53 lines
1.6 KiB
Bash
Raw Normal View History

2016-03-06 01:02:49 +00:00
# ODROID-C2 Mali GL Driver
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=8
pkgbase=odroid-c2-libgl
2016-05-26 01:08:12 +00:00
pkgname=("${pkgbase}-x11" "${pkgbase}-fb" "${pkgbase}-headers")
pkgver=r6p1
2016-05-26 03:33:59 +00:00
pkgrel=2
2016-05-26 01:08:12 +00:00
_commit=46fe49f37e3506c6205ad8c50980eca9bfff11e3
2016-03-06 01:02:49 +00:00
arch=('aarch64')
url="http://www.hardkernel.com/"
license=('Proprietary')
depends=('mesa-libgl')
makedepends=('git')
source=("git+https://github.com/mdrjr/c2_mali.git#commit=${_commit}"
2016-05-26 03:33:59 +00:00
'mali-c2.conf'
'99-mali.rules')
2016-03-06 01:02:49 +00:00
md5sums=('SKIP'
2016-05-26 03:33:59 +00:00
'40f5104200cfceb12b4623d219646d4e'
'88e938d52d0e02657fa5eca2efc6ee36')
2016-03-06 01:02:49 +00:00
2016-05-26 01:08:12 +00:00
package_odroid-c2-libgl-x11() {
pkgdesc="ODROID-C2 Mali driver (X11)"
conflicts=('odroid-c2-libgl')
provides=('odroid-c2-libgl')
install -d "${pkgdir}"/usr/lib/mali-egl
install -d "${pkgdir}"/etc/ld.so.conf.d
cp -a c2_mali/x11/mali_libs/lib* "${pkgdir}"/usr/lib/mali-egl
cp "${srcdir}"/mali-c2.conf "${pkgdir}"/etc/ld.so.conf.d
}
2016-03-06 01:02:49 +00:00
package_odroid-c2-libgl-fb() {
pkgdesc="ODROID-C2 Mali driver (framebuffer)"
conflicts=('odroid-c2-libgl')
provides=('odroid-c2-libgl')
install -d "${pkgdir}"/usr/lib/mali-egl
install -d "${pkgdir}"/etc/ld.so.conf.d
2016-05-26 03:33:59 +00:00
install -d "${pkgdir}"/usr/lib/udev/rules.d
2016-03-06 01:02:49 +00:00
cp -a c2_mali/fbdev/mali_libs/lib* "${pkgdir}"/usr/lib/mali-egl
cp "${srcdir}"/mali-c2.conf "${pkgdir}"/etc/ld.so.conf.d
2016-05-26 03:33:59 +00:00
cp "${srcdir}"/99-mali.rules "${pkgdir}"/usr/lib/udev/rules.d
2016-03-06 01:02:49 +00:00
}
2016-05-26 01:08:12 +00:00
package_odroid-c2-libgl-headers() {
pkgdesc="ODROID-C2 Mali driver headers"
install -d "${pkgdir}"/usr/include
cp -a c2_mali/x11/mali_headers/{ump,umplock} "${pkgdir}"/usr/include
}