void-packages/srcpkgs/omxplayer/template

30 lines
969 B
Bash

# Template file for 'omxplayer'
pkgname=omxplayer
version=20160723
revision=4
short_desc="Commandline OMX player for the Raspberry Pi"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2"
homepage="https://github.com/popcornmix/omxplayer"
_commit="66f90768fd3770e042ca361d76aba751e6427abe"
wrksrc="omxplayer-$_commit"
distfiles="$homepage/archive/$_commit.tar.gz"
checksum=742cf4e6b51974b335bc8e546dd31679eb4f99373c9a8becd155cd339ae2a10d
# XXX only rpi
only_for_archs="armv6l armv6l-musl armv7l armv7l-musl"
build_style=gnu-makefile
hostmakedepends="curl 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
}