public
Created

omxplayer change repo

  • Download Gist
pkgbuild_omxplayer-git
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
# Maintainer: Jonathan Hudson <jh+arch@daria.co.uk>
 
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/popcornmix/omxplayer"
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
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.