PKGBUILDs/aur/omxplayer-git/PKGBUILD
Kevin Mihelich 4fec90e6ea aur updates
2013-07-12 02:07:13 +00:00

51 lines
1.3 KiB
Bash

# Maintainer: Jonathan Hudson <jh+arch@daria.co.uk>
buildarch=16
pkgname=omxplayer-git
pkgver=20130708
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)
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
# msg "Applying font path patch"
# patch -Np1 -i ../omxfont.patch || msg "and I don't care"
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
}