Want more features on Pastebin? Sign Up, it's FREE!
Guest

omxplayer-git new PKGBUILD

By: a guest on Jan 17th, 2015  |  syntax: None  |  size: 1.35 KB  |  views: 187  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer:   Huulivoide      <gmail.com: jesse.jaara>
  2. # Contributor:  Jonathan Hudson <daria.co.uk: jh+arch>
  3.  
  4.  
  5. # If you are building this on the original 256MB Raspberry Pi
  6. # you need to enable some swap (100MB ?) or the build will fail
  7. # on OMXPlayerSubtitles.cpp
  8.  
  9.  
  10. pkgname=omxplayer-git
  11. pkgver=396.a4ee074
  12. pkgrel=1
  13. pkgdesc="omxplayer is a command line media player for the RaspberryPi"
  14. arch=('arm' 'armv6h')
  15. url="https://github.com/popcornmix/omxplayer"
  16. license=(GPL2)
  17. depends=('ffmpeg' 'raspberrypi-firmware-tools' 'fbset')
  18. makedepends=('git' 'boost')
  19. optdepends=('ttf-freefont')
  20. provides=(omxplayer)
  21. conflicts=('omxplayer' 'omxplayer-bin')
  22. source=(git://github.com/popcornmix/omxplayer.git
  23.         Makefile.arch Makefile.include.arch patch)
  24.  
  25. pkgver() {
  26.   cd omxplayer
  27.   echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  28. }
  29.  
  30. prepare() {
  31.   cd "${srcdir}/omxplayer"
  32.  
  33.   cp ../Makefile.arch Makefile
  34.   cp ../Makefile.include.arch Makefile.include
  35.   cp ../patch patch
  36.  
  37.   sed 's|truetype/freefont|TTF|g' -i omxplayer.cpp
  38.   patch -Np0 -i patch
  39. }
  40.  
  41. build() {
  42.   cd "${srcdir}/omxplayer"
  43.  
  44.   make
  45. }
  46.  
  47. package() {
  48.   cd "${srcdir}/omxplayer"
  49.  
  50.   make DESTDIR="${pkgdir}" install
  51. }
  52.  
  53. md5sums=('SKIP'
  54.          '462e40e8da2e2b10cb32138e7885d285'
  55.          'a8635442d02665944c04c18606453a04'
  56.          'fca3a7b70f63c9715b83ee80ff123ae6')
clone this paste RAW Paste Data