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

Lightspark-git cleaner PKGBUILD

By: fredbezies on May 18th, 2014  |  syntax: None  |  size: 1.31 KB  |  views: 352  |  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: mmm
  2. # Contributor: bslackr <brendan at vastactive dot com>
  3. # Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
  4. # Contributor: Thomas Dziedzic < gostrc at gmail >
  5.  
  6. pkgname=lightspark-git
  7. pkgver=lightspark.0.7.2.r118.g2c35822
  8. pkgrel=1
  9. pkgdesc="An alternative Flash Player for Linux"
  10. arch=(i686 x86_64)
  11. url="http://lightspark.sourceforge.net"
  12. license=(LGPL3)
  13. depends=(mesa ftgl gtk2 curl zlib ffmpeg glew pcre libffi boost-libs
  14.          hicolor-icon-theme desktop-file-utils libxml++ rtmpdump)
  15. makedepends=(git cmake nasm xulrunner llvm glproto boost fontconfig
  16.              sdl libpulse)
  17. optdepends=('gnash-gtk: Gnash fallback support'
  18.             'libpulse: PulseAudio audio backend'
  19.             'sdl: SDL audio backend')
  20. provides=(lightspark)
  21. conflicts=(lightspark)
  22. source=("git+git://github.com/lightspark/lightspark.git")
  23. md5sums=('SKIP')
  24.  
  25. _gitname="lightspark"
  26.  
  27. pkgver() {
  28.   cd "$srcdir/$_gitname"
  29.   git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
  30. }
  31.  
  32. build() {
  33.  
  34.   cd $_gitname
  35.   cmake \
  36.     -DCMAKE_INSTALL_PREFIX=/usr \
  37.     -DCOMPILE_PLUGIN=1 \
  38.     -DCMAKE_BUILD_TYPE=Release \
  39.     -DGNASH_EXE_PATH=/usr/bin/gtk-gnash \
  40.     -DAUDIO_BACKEND="pulseaudio sdl" \
  41.     ../$_gitname
  42.  
  43.   make
  44. }
  45.  
  46. package() {
  47.   cd $_gitname
  48.   make DESTDIR="$pkgdir" install
  49. }
clone this paste RAW Paste Data