Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #maintainer fulvio at pc_dot_jaring_dot_my
- defaults() {
- _buildCORE="--with-core"
- _buildCLI="--with-cli"
- _buildGTK="--without-gtk"
- _buildQT="--without-qt4"
- _buildPLG="--without-plugins"
- }
- question() {
- _BLUE="\e[34;1m"
- _NORMAL="\e[0m"
- defaults
- echo -e $_BLUE"You have a choise to setup only CLI package"
- echo -e "Additional options to select are:"
- echo -e " GTK / QT4 front-end / plugins (/q/g/p) s to skip "
- echo -e "Any other key to reset selection and repeat " $_NORMAL
- while read -r -n1 answer; do
- case ${answer,,} in
- g) depends+=('gtk2')
- _buildGTK="--with-gtk"
- echo -ne '\rGTK selected\n';;
- q) depends+=('qt')
- _buildQT="--with-qt4"
- echo -ne '\rQT4 selected\n';;
- p) _buildPLG="--with-plugins"
- echo -ne '\rPlugins selected\n';;
- s) echo -E ''
- break;;
- *) echo -ne '\rReset selections\n'
- defaults;;
- esac
- done
- }
- pkgname=avidemux-2.6-nightly
- pkgver=snapshot
- pkgrel=8194
- pkgdesc="A graphical tool to edit video(filter/re-encode/split) nightly built (unstable)"
- arch=('i686' 'x86_64')
- url="http://www.avidemux.org/"
- license=('GPL2')
- depends=('pkg-config' 'libpulse' 'libdca' 'faac' 'lame' 'xvidcore' 'opencore-amr' 'libvpx' 'faad2' 'jack' 'aften' 'x264' 'mesa' 'libva' 'dcaenc')
- makedepends=('cmake' 'yasm')
- source=(http://avidemux.org/nightly/source/${pkgver}_${pkgrel}.tgz)
- md5sums=('0e21bcefb59d8a6bc20e887c2e6ccd5b')
- provides=('avidemux2.6')
- options=('!makeflags')
- build() {
- question
- cd "${srcdir}"
- tar -xvf ${pkgver}_${pkgrel}.tgz
- cd ${pkgver}_${pkgrel}
- msg "Starting make..."
- bash bootStrap.bash ${_buildCORE} ${_buildCLI} ${_buildGTK} ${_buildQT} ${_buildPLG}
- }
- package() {
- mkdir -p "${srcdir}"/${pkgver}_${pkgrel}/install/usr/pixmaps
- cp ${pkgver}_${pkgrel}/avidemux_icon.png "${srcdir}"/${pkgver}_${pkgrel}/install/usr/pixmaps/avidemux3.png
- cp -R "${srcdir}"/${pkgver}_${pkgrel}/install/* "${pkgdir}"/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement