void-packages/srcpkgs/omxplayer/template

29 lines
941 B
Bash

# Template file for 'omxplayer'
pkgname=omxplayer
version=20190102
revision=2
short_desc="Commandline OMX player for the Raspberry Pi"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/popcornmix/omxplayer"
_commit="f06235cc9690a6d58187514452df8cf8fcdaacec"
distfiles="$homepage/archive/$_commit.tar.gz"
checksum=af2d9450f8947842ea8c401fe9f71eec444013ebbdee29f2ac828c9c493c1329
# XXX only rpi
archs="armv6l* armv7l*"
build_style=gnu-makefile
hostmakedepends="ruby-ronn pkg-config"
makedepends="alsa-lib-devel 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
}