void-packages/srcpkgs/rpi-userland/template
Juan RP 0d85b53dd0 Refact Raspberry Pi firmware and userland packages.
- Packaged rpi-userland which now contains the userland GPU libs
and utilities, and builds on musl.
- rpi-firmware now just contains the boot files, nothing else.
- rpi-firmware-pcfiles has been merged into rpi-userland-devel and
has been removed.
2015-09-07 18:49:26 +02:00

62 lines
1.5 KiB
Bash

# Template file for 'rpi-firmware'
_githash="fb11b39d97371c076eef7c85bbcab5733883a41e"
_gitshort="${_githash:0:7}"
pkgname=rpi-userland
version=0.0.0.0.20150907
revision=1
wrksrc="userland-${_githash}"
build_style=cmake
hostmakedepends="cmake"
short_desc="Raspberry Pi GPU userland libraries and utilities (git ${_gitshort})"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="3-clause-BSD"
homepage="https://github.com/raspberrypi/userland"
distfiles="https://github.com/raspberrypi/userland/archive/${_githash}.tar.gz"
checksum=3521fa369732c7caa9a343c19a4b37d1b1056033965f0654a07547a936da87df
only_for_archs="armv6l armv6l-musl armv7l armv7l-musl"
shlib_provides="
libvcsm.so
libvcos.so
libvchiq_arm.so
libopenmaxil.so
libmmal_vc_client.so
libmmal_util.so
libmmal_core.so
libmmal_components.so
libmmal.so
libdebug_sym.so
libcontainers.so
libbcm_host.so
libWFC.so
libOpenVG.so
libGLESv2.so
libEGL.so"
pre_configure() {
sed -i '/extern FILE \*stderr/d' host_applications/linux/apps/raspicam/RaspiVidYUV.c
}
post_install() {
vmkdir etc/ld.so.conf.d
echo "/opt/vc/lib" > ${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
vmkdir usr/lib/pkgconfig
vcopy ${FILESDIR}/*.pc usr/lib/pkgconfig
rm -rf ${DESTDIR}/etc
rm -rf ${DESTDIR}/opt/vc/share
}
rpi-userland-devel_package() {
provides="rpi-firmware-pcfiles-1_1"
replaces="rpi-firmware-pcfiles>=0"
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove opt/vc/include
vmove opt/vc/src
vmove opt/vc/lib/*.a
vmove usr/lib/pkgconfig
}
}