This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 3rd, 2013  |  syntax: Bash  |  size: 1.08 KB  |  views: 36  |  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: M4rQu1Nh0S <zonadomarquinhos@gmail.com>
  2.  
  3. pkgname=nmpfront-git
  4. _gitname=nmpfront
  5. pkgver=1
  6. pkgrel=1
  7. # The pkgver function will break the date ordering of the
  8. # previous pkgver variable. Epoch will help to fix it.
  9. epoch=1
  10. pkgdesc="Noname is a MPlayer GTK+ Front-end"
  11. arch=('i686' 'x86_64')
  12. url="http://nmpfront.sourceforge.net/"
  13. license=('GPL3')
  14. depends=('gtk2')
  15. makedepends=('git' 'intltool')
  16. optdepends=('mplayer2: Mplayer with advanced general-purpose media player')
  17. source=("git://${_gitname}.git.sourceforge.net/gitroot/${_gitname}/${_gitname}" 'fixes.patch')
  18. md5sums=('SKIP' '1aa5b3a497b351026f46760609bf0286')
  19.  
  20. pkgver() {
  21.   cd "${srcdir}/${_gitname}"
  22.   printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  23. }
  24.  
  25. prepare() {
  26.   cd "${srcdir}/${_gitname}"
  27.   patch -Np0 < "${srcdir}/fixes.patch"
  28. }
  29.  
  30. build() {
  31.   cd "${srcdir}/${_gitname}"
  32.  
  33.   aclocal
  34.   autoconf
  35.   ./autogen.sh CFLAGS="-lpthread -lm" --prefix=/usr --docdir=/usr/share/doc
  36.  
  37.   make
  38. }
  39.  
  40. package() {
  41.   cd "${srcdir}/${_gitname}"
  42.   make DESTDIR="$pkgdir/" install
  43. }
clone this paste RAW Paste Data