void-packages/srcpkgs/omxplayer/template

30 lines
893 B
Text

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