void-packages/srcpkgs/omxplayer/template

26 lines
785 B
Bash

# Template file for 'omxplayer'
pkgname=omxplayer
version=20150526
revision=1
short_desc="Commandline OMX player for the Raspberry Pi (git ${_gitshort})"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://github.com/popcornmix/omxplayer"
# XXX only rpi
only_for_archs="armv6l armv6l-musl armv7l armv7l-musl"
build_style=gnu-makefile
hostmakedepends="pkg-config git"
makedepends="rpi-firmware pcre-devel boost-devel freetype-devel ffmpeg-devel dbus-devel"
depends="freefont-ttf"
do_fetch() {
local url="git://github.com/popcornmix/omxplayer.git"
git clone $url ${wrksrc}
}
do_build() {
sed -e 's,/usr/share/fonts/truetype/freefont,/usr/share/fonts/TTF,g' -i omxplayer.cpp
mkdir -p /opt/vc/lib
make CC=$CC XBPS_CROSS_BASE=$XBPS_CROSS_BASE ${makejobs}
}