void-packages/srcpkgs/sunxi-mali/template

43 lines
1.2 KiB
Plaintext

# Template file for 'sunxi-mali'
pkgname=sunxi-mali
version=20140127
revision=2
build_style=gnu-makefile
short_desc="Linux sunxi MALI userpace propietary libraries"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="https://github.com/linux-sunxi/sunxi-mali"
# Use our own tarball because chroot-git does not have support for https.
wrksrc="${pkgname}"
distfiles="http://xbps.nopcode.org/distfiles/${pkgname}-${version}.tar.xz"
checksum=9ec11a65f61980f542f7b079bb9975bba6939efca0647cc0f73a64df55e5a8a4
only_for_archs="armv7l"
hostmakedepends="pkg-config perl"
makedepends="libXfixes-devel libdri2-devel-git libdrm-devel"
provides="libump-1.0_1 libEGL-1.0_1 libGLES-1.0_1"
replaces="libump>=0 libEGL>=0 libGLES>=0"
do_build() {
VERSION=r3p2-01rel1 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="libXfixes-devel libdri2-devel-git libdrm-devel ${sourcepkg}>=${version}_${revision}"
provides="libump-devel-1.0_1"
replaces="libump-devel>=0"
pkg_install() {
vmove usr/include
vmove "usr/lib/libEGL*.so"
vmove "usr/lib/libGLES*.so"
}
}