# Maintainer: Timo Teräs pkgname=omxplayer pkgver=0.20131216 _commitid=b34143cb3e678453ccae968d3a65c0cb5a34333e pkgrel=1 pkgdesc="Commandline OMX player for Raspberry Pi" url="https://github.com/popcornmix/omxplayer" arch="armhf" license="GPLv2" depends="" makedepends="raspberrypi-dev ffmpeg-dev pcre-dev boost-dev freetype-dev dbus-dev" install="" subpackages="$pkgname-doc" source="omxplayer-$pkgver.tar.gz::https://github.com/popcornmix/omxplayer/archive/$_commitid.tar.gz use-system-libs.patch " _srcdir="$srcdir"/$pkgname-$_commitid prepare() { local i cd "$_srcdir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_srcdir" cat < Makefile.include INCLUDES:=-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux INCLUDES+=$(pkg-config --cflags freetype2 dbus-1) LDFLAGS:=-L/opt/vc/lib -Wl,-rpath,/opt/vc/lib LDFLAGS+=$(pkg-config --libs freetype2 dbus-1) EOF make } package() { cd "$_srcdir" make dist DIST="$pkgdir" || return 1 rm -rf "$pkgdir"/usr/lib/omxplayer } md5sums="ae722a186555168545c61c5f1b10be53 omxplayer-0.20131216.tar.gz f012acde48e989a13fbd9351cb8bcf11 use-system-libs.patch" sha256sums="efac24685bfb142c2fae4ff5ebed824d6b6d03e01491044bbe558880b31ae1be omxplayer-0.20131216.tar.gz 242c0efdbea973c9623e0ff861d19a842a055aef17884fbbcb87388b31767ed5 use-system-libs.patch" sha512sums="f61c9c4188c4001fa683ce574b5229c40d54bf0afed33d70ed7eae1ff1b8308880c208a67b65d071b419690b66601dcce6cab6799f7134994d43d27375df9f77 omxplayer-0.20131216.tar.gz 84d184d499f5bc8326aa41bec70eff99855afedd726aacfc962ac5b9b9afed92cfd61a9d9b2f21e2f2af887b1c38cd1fc025a0ec6fd73eafcaf3c7b9d90ef857 use-system-libs.patch"