void-packages/srcpkgs/sunxi-mali/template

52 lines
1.4 KiB
Bash

# Template file for 'sunxi-mali'
pkgname=sunxi-mali
version=20181122
revision=2
_commit=d343311efc8db166d8371b28494f0f27b6a58724
_lib_commit=1c5063f43cdc9de341c0d63b2e3921cab86c7742
archs="armv7l"
create_wrksrc=yes
build_wrksrc=${pkgname}-${_commit}
build_style=gnu-makefile
hostmakedepends="pkg-config perl"
makedepends="libXfixes-devel libump-git-devel libdri2-devel-git libdrm-devel"
short_desc="Linux sunxi MALI userpace propietary libraries"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/linux-sunxi/sunxi-mali"
distfiles="${homepage}/archive/${_commit}.tar.gz
https://github.com/linux-sunxi/sunxi-mali-proprietary/archive/${_lib_commit}.tar.gz"
checksum="5ae27be532928667aa820a0aa9813dde545c224294b9402b27b6ca68f4d69ee4
f87d93629072dd0306ffe1200425188129e5f7f97750126dff38464ea707f673"
provides="libEGL-1.0_1 libGLES-1.0_1"
replaces="libEGL>=0 libGLES>=0"
repository=nonfree
nostrip=yes
post_extract() {
cp -r sunxi-mali-proprietary-${_lib_commit}/* ${pkgname}-${_commit}/lib/mali/
}
do_build() {
VERSION=r3p0 ABI=armhf EGL_TYPE=x11 make config
make ${makejobs}
sed -n '1,22p' version/version.c > LICENSE
}
do_install() {
vmkdir usr/lib
make DESTDIR=${DESTDIR} install
vlicense LICENSE
}
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"
}
}