# Maintainer: Timo Teräs pkgname=omxplayer pkgver=0.20141118 _commitid=381e05871b2a633675fdab8972b068757e588691 pkgrel=0 pkgdesc="Commandline OMX player for Raspberry Pi" url="https://github.com/popcornmix/omxplayer" arch="armhf" license="GPLv2" depends="ttf-dejavu" 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 issue-260.patch fix-makefile.patch default-font.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) STRIP:=/usr/bin/strip EOF make omxplayer.bin omxplayer.1 } package() { cd "$_srcdir" make install DIST="$pkgdir" || return 1 rm -rf "$pkgdir"/usr/lib/omxplayer } md5sums="82a1869267091d54f0e63b2c148c68a4 omxplayer-0.20141118.tar.gz a900cdded87b7df503c6599ac43bd8de issue-260.patch d8f335e1dff4b34faf36c25ad2c2b881 fix-makefile.patch 79197742a37d4493e1224675c6803eba default-font.patch" sha256sums="9c1c9fc8ff51ba1c9eb318fc1b847d6a4202022f53e3e78a225ef3984329588c omxplayer-0.20141118.tar.gz 5eb797de354c63a23847a574b103a28d451a4329320f3335f82dc000adbc5c63 issue-260.patch 799b0aba6aef8c665a685777cd912268315309d0d74ce76be5fdfd0dcffbb422 fix-makefile.patch 0d283b33189d6dc4d3a576f6ac2a0ab1285b86a04be555efc139a9296df91631 default-font.patch" sha512sums="afd87aa00efbe5d74f53770a2395c2251c389e5a1de163c90355c8cf5f03d7a1b5151426272dbf0472978328d0a63253f4856ecdc7f18136b59cc39f00937646 omxplayer-0.20141118.tar.gz c349eea5f7c513a07d82a6cf6467c4d21bcb29c053bc5e39d8f675b1212db9beef0abf5248d50ac5a2f14fda73055786f94f421377ffcf5f6bcf8daa2f1b56e8 issue-260.patch 3210242f9b834ffec9d3077d5a25caf8be84aa7f4f13c73eb7f61c0a406ec787e4055951fc5a6236f1da7897c95db94a5e11e25d1b3e859a6ea67f31fc6eb517 fix-makefile.patch 70762237e6f6d810da91f8ec46bcc68310d8ff44c6d103c0a77a7c4f6f6a39b1e6440a74799490b0e27a8e50848300a12f701850c3c3475c5497d33802304d0f default-font.patch"