2013-06-23 17:35:56 +00:00
|
|
|
# Maintainer: Jonathan Hudson <jh+arch@daria.co.uk>
|
|
|
|
|
2013-06-23 17:46:15 +00:00
|
|
|
buildarch=16
|
|
|
|
|
2013-06-23 17:35:56 +00:00
|
|
|
pkgname=omxplayer-git
|
2013-07-12 02:07:13 +00:00
|
|
|
pkgver=20130708
|
2013-06-23 17:35:56 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="omxplayer is a command line media player for the RaspberryPi"
|
|
|
|
arch=('arm' 'armv6h')
|
|
|
|
url="https://github.com/huceke/omxplayer.git"
|
|
|
|
license=(GPL2)
|
|
|
|
depends=(ffmpeg pcre rtmpdump fbset ffmpeg-compat freetype2)
|
|
|
|
makedepends=(git boost)
|
|
|
|
optdepends=(ttf-freefont)
|
|
|
|
provides=(omxplayer)
|
|
|
|
conflicts=(omxplayer omxplayer-bin)
|
2013-07-12 02:07:13 +00:00
|
|
|
source=(omxplayer.arch Makefile.arch Makefile.include.arch)
|
2013-06-23 17:35:56 +00:00
|
|
|
md5sums=('305f8fedbc4638434475c4a83ee78578'
|
|
|
|
'5a15874072dec90013b8bec7383f1459'
|
|
|
|
'3af60fb0782a32471bba9913c25ce322'
|
|
|
|
)
|
|
|
|
_gitroot="https://github.com/huceke/omxplayer.git"
|
|
|
|
_gitname="omxplayer"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"
|
|
|
|
msg "Connecting to GIT server...."
|
|
|
|
if [ -d $_gitname ] ; then
|
|
|
|
( cd $_gitname && git pull ) || warning "Git pull failed!"
|
|
|
|
else
|
|
|
|
git clone --depth=1 $_gitroot
|
|
|
|
fi
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
|
|
|
|
|
|
cd $_gitname
|
2013-07-12 02:07:13 +00:00
|
|
|
# msg "Applying font path patch"
|
|
|
|
# patch -Np1 -i ../omxfont.patch || msg "and I don't care"
|
2013-06-23 17:35:56 +00:00
|
|
|
msg "Starting make..."
|
|
|
|
cp omxplayer omxplayer.dist.sh
|
|
|
|
cp Makefile Makefile.dist
|
|
|
|
cp Makefile.include Makefile.include.dist
|
|
|
|
cp ../Makefile.arch Makefile
|
|
|
|
cp ../Makefile.include.arch Makefile.include
|
|
|
|
cp ../omxplayer.arch omxplayer
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_gitname"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|