Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

aur smplayer svn quickfix

By: a guest on Mar 9th, 2013  |  syntax: Bash  |  size: 1.56 KB  |  hits: 100  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Lari Tikkanen <lartza at wippies.com>
  2. # Contributor: oke3 < Sekereg {at} gmx {dot} com
  3. # Contributor: Flamelab <panosfilip@gmail.com>
  4. # Fixes and patches: WAntilles <wantilles@adslgr.com>
  5.  
  6. pkgname=smplayer-svn
  7. pkgver=5228
  8. pkgrel=1
  9. pkgdesc="A complete front-end for MPlayer"
  10. arch=('i686' 'x86_64')
  11. url="http://smplayer.sourceforge.net/"
  12. license=('GPL')
  13. depends=('qt4' 'mplayer')
  14. makedepends=('subversion')
  15. conflicts=('smplayer')
  16. provides=('smplayer')
  17. install=$pkgname.install
  18.  
  19. _svnmod="smplayer"
  20. _svntrunk=https://smplayer.svn.sourceforge.net/svnroot/smplayer/smplayer/trunk/
  21.  
  22. build() {
  23.     cd "$srcdir"
  24.  
  25.     sed -i 's/qmake/qmake-qt4/;s/lrelease/lrelease-qt4/' ./smplayer/Makefile
  26.  
  27.     if [[ -d "$_svnmod/.svn" ]]; then
  28.         (cd "$_svnmod" && svn up -r "$pkgver")
  29.     else
  30.         svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
  31.     fi
  32.  
  33.     msg "SVN checkout done or server timeout"
  34.     msg "Starting make..."
  35.  
  36.     rm -rf "$_svnmod-build"
  37.     cp -r "$_svnmod" "$_svnmod-build"
  38.     cd "$_svnmod-build"
  39.  
  40.     make PREFIX=/usr
  41. }
  42.  
  43. package() {
  44.     cd "$srcdir/$_svnmod-build"
  45.  
  46.     make PREFIX=/usr DESTDIR=$pkgdir install
  47.  
  48.     install -dm755 "$pkgdir/usr/share/pixmaps"
  49.     ln -s /usr/share/icons/hicolor/64x64/apps/smplayer.png \
  50.         "$pkgdir/usr/share/pixmaps/"
  51.  
  52.     sed -i 's|Exec=smplayer %U|Exec=smplayer %F|' "$pkgdir/usr/share/applications/smplayer.desktop"
  53.     sed -i 's|Exec=smplayer -add-to-playlist %U|Exec=smplayer -add-to-playlist %F|' \
  54.    "$pkgdir/usr/share/applications/smplayer_enqueue.desktop"
  55. }