PKGBUILDs/aur/omxplayer-git/PKGBUILD
2013-06-23 13:35:56 -04:00

50 lines
1.3 KiB
Bash

# Maintainer: Jonathan Hudson <jh+arch@daria.co.uk>
pkgname=omxplayer-git
pkgver=20130202
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)
source=(omxplayer.arch Makefile.arch Makefile.include.arch omxfont.patch)
md5sums=('305f8fedbc4638434475c4a83ee78578'
'5a15874072dec90013b8bec7383f1459'
'3af60fb0782a32471bba9913c25ce322'
'86d94208a0c78fe62354012dcb21e257'
)
_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
msg "Applying font path patch"
patch -Np1 -i ../omxfont.patch
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
}