void-packages/srcpkgs/omxplayer/template

31 lines
900 B
Plaintext
Raw Normal View History

2013-03-24 19:16:15 +01:00
# Template file for 'omxplayer'
_githash=ced2387c5c0a435fd52229133c644632375b1d71
_gitshort="${_githash:0:7}"
2013-03-24 19:16:15 +01:00
pkgname=omxplayer
version=20150207
revision=1
short_desc="Commandline OMX player for the Raspberry Pi (git ${_gitshort})"
2013-03-24 19:16:15 +01:00
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="https://github.com/popcornmix/omxplayer"
2013-03-24 19:16:15 +01:00
# XXX only rpi
only_for_archs="armv6l armv7l"
2013-11-23 10:56:44 +01:00
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"
2013-03-24 19:16:15 +01:00
do_fetch() {
local url="git://github.com/popcornmix/omxplayer.git"
2013-03-24 19:16:15 +01:00
git clone $url ${pkgname}-${version}
cd ${pkgname}-${version}
git checkout ${_githash}
2013-03-24 19:16:15 +01:00
}
pre_build() {
sed -e 's,/usr/share/fonts/truetype/freefont,/usr/share/fonts/TTF,g' -i omxplayer.cpp
mkdir -p /opt/vc/lib
2013-03-24 19:16:15 +01:00
}