APKBUILD 2.51 KB
Newer Older
Timo Teräs's avatar
Timo Teräs committed
1 2
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=omxplayer
3 4 5
pkgver=0.20180516
_commitid=96800576209bbf02939a3d71dec91ec1c1da586b
pkgrel=0
Timo Teräs's avatar
Timo Teräs committed
6 7 8
pkgdesc="Commandline OMX player for Raspberry Pi"
url="https://github.com/popcornmix/omxplayer"
arch="armhf"
9
license="GPL-2.0"
Timo Teräs's avatar
Timo Teräs committed
10
depends="ttf-freefont"
11
makedepends="linux-headers raspberrypi-dev ffmpeg-dev pcre-dev
12
	boost-dev freetype-dev dbus-dev alsa-lib-dev"
Timo Teräs's avatar
Timo Teräs committed
13
install=""
14 15
options="!check"
subpackages="$pkgname-doc $pkgname-dbg $pkgname-openrc"
Timo Teräs's avatar
Timo Teräs committed
16
source="omxplayer-$pkgver.tar.gz::https://github.com/popcornmix/omxplayer/archive/$_commitid.tar.gz
17
	issue-260.patch
18
	issue-297.patch
19
	fix-makefile.patch
20
	default-font.patch
21 22 23

	omxplayer.initd
	omxplayer.confd
Timo Teräs's avatar
Timo Teräs committed
24 25
	"

26
builddir="$srcdir"/$pkgname-$_commitid
Timo Teräs's avatar
Timo Teräs committed
27 28

build() {
29
	cd "$builddir"
Timo Teräs's avatar
Timo Teräs committed
30 31
	cat <<EOF > Makefile.include
INCLUDES:=-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux
32
INCLUDES+=$(pkg-config --cflags freetype2 dbus-1)
Timo Teräs's avatar
Timo Teräs committed
33
LDFLAGS:=-L/opt/vc/lib -Wl,-rpath,/opt/vc/lib
Timo Teräs's avatar
Timo Teräs committed
34
LIBS:=$(pkg-config --libs freetype2 dbus-1)
35
STRIP:=echo
Timo Teräs's avatar
Timo Teräs committed
36
EOF
37
	make omxplayer.bin
Timo Teräs's avatar
Timo Teräs committed
38 39 40
}

package() {
41
	cd "$builddir"
Timo Teräs's avatar
Timo Teräs committed
42
	mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/doc/omxplayer
Timo Teräs's avatar
Timo Teräs committed
43 44 45
	cp omxplayer.bin $pkgdir/usr/bin/omxplayer
	cp COPYING $pkgdir/usr/share/doc/omxplayer
	cp README.md $pkgdir/usr/share/doc/omxplayer/README
46 47

        install -m755 -D "$srcdir"/$pkgname.initd \
48
                "$pkgdir"/etc/init.d/$pkgname
49
        install -m644 -D "$srcdir"/$pkgname.confd \
50
                "$pkgdir"/etc/conf.d/$pkgname
Timo Teräs's avatar
Timo Teräs committed
51 52
}

53
sha512sums="4e523fad139a5afe6c5fa74e0966fd5229259bfe9963c28b9ba7841ec5b895094d10c33340703fc0e2559fd2e9f3c9331cd8f161c1645f188ca592542648b25c  omxplayer-0.20180516.tar.gz
54
c349eea5f7c513a07d82a6cf6467c4d21bcb29c053bc5e39d8f675b1212db9beef0abf5248d50ac5a2f14fda73055786f94f421377ffcf5f6bcf8daa2f1b56e8  issue-260.patch
55
2a8a6def1e09f726cba58c0b9109fa6c4fbd4a3b4f1d27d200488f262a0e0978579d83db7fe24f1d3e03beef318c3674ed79cbd2f1994c4551a59c9fe0f63489  issue-297.patch
Timo Teräs's avatar
Timo Teräs committed
56
009ae8398755417d1a13ed15bcfdc6ce43fb637db153c51c15b00ef0edf82117dfb2964d5e37e0baf30e4ef1e3003546ae39e42a492e75fcdfc15d751e1ad516  fix-makefile.patch
Timo Teräs's avatar
Timo Teräs committed
57
8aa58aaa07453186302dc68d92f28c1b50bf0f8fccd50359640a7fc8339b233b32a0c8c02284a9974599e56d69cc557acc25e76e6438c6d64d15afd9c1788a8e  default-font.patch
58
3ddd32235d87a46478d0237ee9b253edeb75729e377b09a33069ecdca2ee230d2851f308897ee75ff69a9f3bdd2876f490bc1667a572dce1c186f80fddcf6df3  omxplayer.initd
59
4f906ada035869a0e515e7615056b18b0f6906ce4b3a2d34081c0efa79bb9455380f729e7c5270180f5ace89c53a7ac7c93f609e6761825f639f44aa22346bb2  omxplayer.confd"