summaryrefslogtreecommitdiffstats
path: root/testing/omxplayer/APKBUILD
blob: 4584bbc5e7fdf5d6c809a2a35fd61f513b4ad636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=omxplayer
pkgver=0.20140302
_commitid=16d8b48aff320be42cb792165bc4a444b69f05a7
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
	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 <<EOF > 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
}

package() {
	cd "$_srcdir"
	make install DIST="$pkgdir" || return 1
	rm -rf "$pkgdir"/usr/lib/omxplayer
}

md5sums="3f4d07681e3d066ab853fe3a1586aebe  omxplayer-0.20140302.tar.gz
a105ca8848de5d302832b5ceba037681  fix-makefile.patch
b5bdfa2b2f86770bc33e46620b6e0c67  default-font.patch"
sha256sums="e1d47c4da56cbb9c47e296f93b1c3a759fc9e4bca8fd5b8fb86d76c3be59699e  omxplayer-0.20140302.tar.gz
df53982e679d43f8a344575ad6008e2beba3135265c12c1c8728303822d76863  fix-makefile.patch
e25f1053f59bc3eeae246cc8d229044e6924acfddbff3252b9b3635c7bed74bb  default-font.patch"
sha512sums="bee0d10ad7e5215f04ac542519e4cadbaca9552171a803f43349f9811a8589c97bc7943b03e606a4810fb2f9e5e3294544f98b8266e37fd7035c2f2e60db22af  omxplayer-0.20140302.tar.gz
f9b83c3981261eea9a257c6bab596b105d62f3fa94f20c4a0567f8f32931b4fa7bbbf9d2ca8716aaeb4a2b34bbbe44e013c1cf22e916c8d35355f247e67fcc48  fix-makefile.patch
bdea38f5c7df35bab9a788a060de8151e63c1fcba314fd6f48e2fad3c3af1484553f1aad61790412212a7fa49bfd442f0542e830a2e022f7699605929ef75c23  default-font.patch"