void-packages/srcpkgs/omxplayer/template
2015-12-18 15:05:23 +01:00

29 lines
963 B
Bash

# Template file for 'omxplayer'
pkgname=omxplayer
version=20151218
revision=1
short_desc="Commandline OMX player for the Raspberry Pi"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://github.com/popcornmix/omxplayer"
_commit="f5440845cdd91e7816de1937c30057f58c10c268"
wrksrc="omxplayer-$_commit"
distfiles="$homepage/archive/$_commit.tar.gz"
checksum=de129817e5fda01f49e0fd80727caa14f2a715f7af9f035d77b1d0e9d0dc57d2
# XXX only rpi
only_for_archs="armv6l armv6l-musl armv7l armv7l-musl"
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="rpi-userland-devel pcre-devel boost-devel freetype-devel ffmpeg-devel dbus-devel"
depends="freefont-ttf"
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}
}
post_install() {
sed -i 's,omxplayer.bin,omxplayer,g' ${DESTDIR}/usr/bin/omxplayer-dbus
}