void-packages/srcpkgs/sunxi-mali/template

41 lines
1,000 B
Bash

# Template file for 'sunxi-mali'
pkgname=sunxi-mali
version=20150407
revision=1
build_style=gnu-makefile
short_desc="Linux sunxi MALI userpace propietary libraries"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="https://github.com/linux-sunxi/sunxi-mali"
nostrip=yes
only_for_archs="armv7l"
hostmakedepends="git pkg-config perl"
makedepends="libXfixes-devel libump-devel-git libdri2-devel-git libdrm-devel"
provides="libEGL-1.0_1 libGLES-1.0_1"
replaces="libEGL>=0 libGLES>=0"
do_fetch() {
git clone https://github.com/linux-sunxi/sunxi-mali.git ${wrksrc}
cd ${wrksrc}
git submodule init
git submodule update
}
do_build() {
VERSION=r3p0 ABI=armhf EGL_TYPE=x11 make config
make ${makejobs}
}
do_install() {
vmkdir usr/lib
make DESTDIR=${DESTDIR} install
}
sunxi-mali-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/libEGL*.so"
vmove "usr/lib/libGLES*.so"
}
}