Advertisement
Guest User

PKGBUILD

a guest
May 20th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.04 KB | None | 0 0
  1. # Contributor: graysky <graysky AT archlinux DOT us>
  2. # Contributor: jiribb <jiribb@gmail.com>
  3. # Contributor: David Spicer <azleifel at googlemail dot com>
  4. # Contributor: Andrew Brouwers
  5. # Contributor: ponsfoot @ AUR
  6. # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
  7. # Maintainer: David Spicer <azleifel at gmail dot com>
  8.  
  9. pkgbase=handbrake-svn
  10. pkgname=handbrake-svn
  11. true && pkgname=('handbrake-svn' 'handbrake-cli-svn')
  12. _svnmod=HandBrake
  13. pkgver=5487
  14. pkgrel=1
  15. arch=('i686' 'x86_64')
  16. url="http://handbrake.fr/"
  17. license=('GPL')
  18. makedepends=('automake-1.12' 'intltool' 'python2' 'gettext' 'subversion' 'wget' 'yasm')
  19. source=("$_svnmod::svn://svn.handbrake.fr/HandBrake/trunk"
  20.         A00-fix_segfault_w_gcc4.8.patch)
  21. md5sums=('SKIP'
  22.          '7b73826d4a7efeb13cd77990cf512364')
  23.  
  24. pkgver() {
  25.   cd "$SRCDEST/$_svnmod"
  26.   svnversion
  27. }
  28.  
  29. prepare() {
  30.   cd "$srcdir"
  31.  
  32.   # automake 1.13 workaround
  33.   ln -sf /usr/bin/automake-1.12 ./automake
  34.   ln -sf /usr/bin/aclocal-1.12  ./aclocal
  35.   PATH="$srcdir:$PATH"
  36.  
  37.   cd "$srcdir/$_svnmod"
  38.  
  39.   # Substitutions for python2
  40.   sed -i -e 's|python $(srcdir)|python2 $(srcdir)|' "gtk/src/Makefile.am"
  41.   sed -i -e '1c#! /usr/bin/python2' "gtk/src/makedeps.py"
  42.   sed -i -e '1c#! /usr/bin/python2' "gtk/src/create_resources.py"
  43.   sed -i -e '1c#! /usr/bin/python2' "gtk/src/quotestring.py"
  44.  
  45.   cp -f "${srcdir}/A00-fix_segfault_w_gcc4.8.patch" contrib/x264/
  46.  
  47. }
  48.  
  49. build() {
  50.   cd "$srcdir/$_svnmod"
  51.  
  52.   CC=gcc CXX=g++ ./configure --gcc=/usr/bin/gcc --force --verbose --prefix=/usr --disable-gtk-update-checks --launch-jobs=0
  53.  
  54.   # Create build-specific temporary directory for ffmpeg
  55.   install -d -m755 "build/ffmpeg_tmp"
  56.  
  57.   TMPDIR="$srcdir/$_svnmod/build/ffmpeg_tmp" make -C "build"
  58. }
  59.  
  60. package_handbrake-svn() {
  61.   pkgdesc="Multiplatform, multithreaded DVD to MPEG-4/H264/Theora converter (GUI version)"
  62.   optdepends=('gst-plugins-base: For Preview Window'
  63.               'gst-plugins-bad: For Preview Window'
  64.               'gst-plugins-good: For Preview Window'
  65.               'gst-plugins-ugly: For Preview Window'
  66.               'gst-libav: For Preview Window')
  67.   provides=('handbrake')
  68.   conflicts=('handbrake')
  69.   install=${pkgname}.install
  70.  
  71.   cd "$srcdir/$_svnmod"
  72.   make -C "build" DESTDIR="$pkgdir/" install
  73.  
  74.   rm "$pkgdir/usr/bin/HandBrakeCLI"
  75.  
  76.   # Delete icon-theme.cache (which is rebuilt on install)
  77.   rm -f "$pkgdir/usr/share/icons/hicolor/icon-theme.cache"
  78. }
  79.  
  80. package_handbrake-cli-svn() {
  81.   pkgdesc="Multiplatform, multithreaded DVD to MPEG-4/H264/Theora converter (CLI version)"
  82.   depends=('libass' 'libsamplerate' 'libtheora' 'libxml2')
  83.   provides=('handbrake-cli')
  84.   conflicts=('handbrake-cli')
  85.  
  86.   install -D -m755 "$srcdir/$_svnmod/build/HandBrakeCLI" "$pkgdir/usr/bin/HandBrakeCLI"
  87. }
  88.  
  89. # Global pkgdesc and depends are here so that they will be picked up by AUR
  90. pkgdesc="Multiplatform, multithreaded DVD to MPEG-4/H264/Theora converter"
  91. depends=('dbus-glib' 'desktop-file-utils' 'gst-plugins-base-libs' 'gtk3' 'hicolor-icon-theme' 'libass' 'libnotify' 'libsamplerate' 'libtheora')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement