Advertisement
Guest User

PKGBUILD for avidemux3

a guest
Sep 19th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.86 KB | None | 0 0
  1. #maintainer fulvio at pc_dot_jaring_dot_my
  2.  
  3. defaults() {
  4. _buildCORE="--with-core"
  5. _buildCLI="--with-cli"
  6. _buildGTK="--without-gtk"
  7. _buildQT="--without-qt4"
  8. _buildPLG="--without-plugins"
  9. }
  10. question() {
  11.  
  12.  
  13. _BLUE="\e[34;1m"
  14. _NORMAL="\e[0m"
  15. defaults
  16. echo -e $_BLUE"You have a choise to setup only CLI package"
  17. echo -e "Additional options to select are:"
  18. echo -e " GTK / QT4 front-end / plugins (/q/g/p) s to skip "
  19. echo -e "Any other key to reset selection and repeat " $_NORMAL
  20.  
  21. while read -r -n1 answer; do
  22.     case ${answer,,} in
  23.     g) depends+=('gtk2')
  24.         _buildGTK="--with-gtk"
  25.         echo -ne '\rGTK selected\n';;
  26.     q) depends+=('qt')
  27.         _buildQT="--with-qt4"
  28.         echo -ne '\rQT4 selected\n';;
  29.     p) _buildPLG="--with-plugins"
  30.         echo -ne '\rPlugins selected\n';;
  31.     s) echo -E ''
  32.         break;;
  33.     *) echo -ne '\rReset selections\n'
  34.         defaults;;
  35.     esac
  36. done
  37. }
  38. pkgname=avidemux-2.6-nightly
  39. pkgver=snapshot
  40. pkgrel=8194
  41. pkgdesc="A graphical tool to edit video(filter/re-encode/split) nightly built (unstable)"
  42. arch=('i686' 'x86_64')
  43. url="http://www.avidemux.org/"
  44. license=('GPL2')
  45. depends=('pkg-config' 'libpulse' 'libdca' 'faac' 'lame' 'xvidcore' 'opencore-amr' 'libvpx' 'faad2' 'jack' 'aften' 'x264' 'mesa' 'libva' 'dcaenc')
  46. makedepends=('cmake' 'yasm')
  47. source=(http://avidemux.org/nightly/source/${pkgver}_${pkgrel}.tgz)
  48. md5sums=('0e21bcefb59d8a6bc20e887c2e6ccd5b')
  49. provides=('avidemux2.6')
  50. options=('!makeflags')
  51.  
  52.  
  53. build() {
  54.     question
  55.     cd "${srcdir}"
  56.     tar -xvf ${pkgver}_${pkgrel}.tgz
  57.     cd  ${pkgver}_${pkgrel}
  58.     msg "Starting make..."
  59.     bash bootStrap.bash ${_buildCORE} ${_buildCLI} ${_buildGTK} ${_buildQT} ${_buildPLG}
  60. }
  61. package() {
  62.     mkdir -p "${srcdir}"/${pkgver}_${pkgrel}/install/usr/pixmaps
  63.     cp  ${pkgver}_${pkgrel}/avidemux_icon.png "${srcdir}"/${pkgver}_${pkgrel}/install/usr/pixmaps/avidemux3.png
  64.     cp -R "${srcdir}"/${pkgver}_${pkgrel}/install/* "${pkgdir}"/
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement