summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO94
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD251
-rw-r--r--avidemux.install11
4 files changed, 361 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..af8b7da8ae2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,94 @@
+pkgbase = avidemux-git
+ pkgdesc = A graphical/cli tool to edit video (filter/re-encode/split). (GIT version)
+ pkgver = 2.6.10.150607.4c23a42c229
+ pkgrel = 1
+ url = http://www.avidemux.org/
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = cmake
+ makedepends = subversion
+ makedepends = yasm
+ makedepends = aften
+ makedepends = dcaenc
+ makedepends = faac
+ makedepends = faad2
+ makedepends = fribidi
+ makedepends = jack2
+ makedepends = lame
+ makedepends = libdca
+ makedepends = libpulse
+ makedepends = libva
+ makedepends = libvpx
+ makedepends = libx264
+ makedepends = opencore-amr
+ makedepends = twolame
+ makedepends = xvidcore
+ makedepends = x265
+ makedepends = sqlite
+ makedepends = qt4
+ makedepends = glu
+ makedepends = qt5-script
+ makedepends = qt5-tools
+ makedepends = libxv
+ source = avidemux::git+https://github.com/mean00/avidemux2.git
+ sha1sums = SKIP
+
+pkgname = avidemux-core-git
+ pkgdesc = Core libs for Avidemux. (GIT version)
+ depends = aften
+ depends = dcaenc
+ depends = faac
+ depends = faad2
+ depends = fribidi
+ depends = jack2
+ depends = lame
+ depends = libdca
+ depends = libpulse
+ depends = libva
+ depends = libvpx
+ depends = opencore-amr
+ depends = twolame
+ depends = xvidcore
+ depends = sqlite
+ depends = libx264
+ depends = x265
+ optdepends = avidemux-qt4-git: a Qt4 GUI for Avidemux. (GIT Version) (install from "avidemux-git" package)
+ optdepends = avidemux-qt5-git: a Qt5 GUI for Avidemux. (GIT Version) (install from "avidemux-git" package)
+ optdepends = avidemux-gtk-git: a Gtk3 GUI for Avidemux. (GIT Version) (install from "avidemux-git" package)
+ optdepends = avidemux-cli-git: a CLI frontend for Avidemux. (GIT Version) (install from "avidemux-git" package)
+ optdepends = wine: AVSload
+ provides = avidemux-core-git=2.6.10.150607.4c23a42c229
+ provides = avidemux-core
+
+pkgname = avidemux-qt4-git
+ pkgdesc = Qt4 GUI for Avidemux. (GIT version)
+ install = avidemux.install
+ depends = avidemux-core-git=2.6.10.150607.4c23a42c229
+ depends = qt4
+ depends = glu
+ depends = libx264
+ depends = x265
+ provides = avidemux-qt4-git=2.6.10.150607.4c23a42c229
+ conflicts = avidemux-qt4
+
+pkgname = avidemux-qt5-git
+ pkgdesc = Qt5 GUI for Avidemux. (GIT version)
+ install = avidemux.install
+ depends = avidemux-core-git=2.6.10.150607.4c23a42c229
+ depends = qt5-script
+ depends = libxv
+ depends = desktop-file-utils
+ depends = libx264
+ depends = x265
+ provides = avidemux-qt5-git=2.6.10.150607.4c23a42c229
+ conflicts = avidemux-qt5
+
+pkgname = avidemux-cli-git
+ pkgdesc = CLI frontend for Avidemux. (GIT version)
+ depends = avidemux-core-git=2.6.10.150607.4c23a42c229
+ provides = avidemux-cli-git=2.6.10.150607.4c23a42c229
+ provides = avidemux-cli
+ conflicts = avidemux-cli
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6608cfd829f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
+!avidemux.install
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a9b3e8e82e1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,251 @@
+# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
+
+makedepends=('git' 'cmake' 'subversion' 'yasm' 'aften' 'dcaenc' 'faac' 'faad2' 'fribidi' 'jack2' 'lame' 'libdca' 'libpulse' 'libva'
+ 'libvpx' 'libx264' 'opencore-amr' 'twolame' 'xvidcore' 'x265' 'sqlite'
+ 'qt4' 'glu'
+ 'qt5-script' 'qt5-tools' 'libxv') #'gtk3'
+pkgbase=avidemux-git
+pkgname=('avidemux-core-git' 'avidemux-qt4-git' 'avidemux-qt5-git' 'avidemux-cli-git') #avidemux-gtk-git
+pkgver=2.6.10.150607.4c23a42c229
+pkgrel=1
+pkgdesc="A graphical/cli tool to edit video (filter/re-encode/split). (GIT version)"
+url="http://www.avidemux.org/"
+license=('GPL2')
+arch=('i686' 'x86_64')
+source=('avidemux::git+https://github.com/mean00/avidemux2.git')
+sha1sums=('SKIP')
+
+pkgver() {
+ cd avidemux
+ _ver="$(cat cmake/avidemuxVersion.cmake | grep -e CPACK_PACKAGE_VERSION_MAJOR -e CPACK_PACKAGE_VERSION_MINOR -e CPACK_PACKAGE_VERSION_P| head -n3 | cut -d '"' -f2)"
+ echo "$(echo ${_ver} | tr ' ' .).$(date -u +%g%m%d).$(git log --format=oneline -1 | head -c 11)"
+}
+
+prepare() {
+ mkdir -p build_core{,_plugins,_plugins_settings}
+ mkdir -p build_qt4{,_plugins}
+ mkdir -p build_qt5{,_plugins}
+# mkdir -p build_gtk{,_plugins}
+ mkdir -p build_cli{,_plugins}
+
+ # http://avidemux.org/smuf/index.php/topic,16302.msg71463.html#msg71463
+ sed 's|hf_hflip|vf_hflip|g' -i avidemux/avidemux_plugins/ADM_videoFilters6/horizontalFlip/CMakeLists.txt
+}
+
+build() {
+ msg2 "Build Core Libs"
+ cd "${srcdir}/build_core"
+ cmake ../avidemux/avidemux_core \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DFAKEROOT="${srcdir}/fakeroot" \
+ -DVERBOSE=
+ make VERBOSE= -j1
+ make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+
+ msg2 "Build Common Plugins"
+ cd "${srcdir}/build_core_plugins"
+ cmake ../avidemux/avidemux_plugins \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPLUGIN_UI=COMMON \
+ -DQTSCRIPT=OFF \
+ -DFAKEROOT="${srcdir}/fakeroot" \
+ -DAVIDEMUX_SOURCE_DIR="${srcdir}/avidemux" \
+ -DVERBOSE=
+ make VERBOSE=
+ make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+
+ msg2 "Build Qt4 GUI"
+ cd "${srcdir}/build_qt4"
+ cmake ../avidemux/avidemux/qt4 \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DFAKEROOT="${srcdir}/fakeroot" \
+ -DVERBOSE=
+ make VERBOSE=
+ make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+
+ msg2 "Build Qt4 GUI Plugins"
+ cd "${srcdir}/build_qt4_plugins"
+ cmake ../avidemux/avidemux_plugins \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPLUGIN_UI=QT4 \
+ -DFAKEROOT="${srcdir}/fakeroot" \
+ -DAVIDEMUX_SOURCE_DIR="${srcdir}/avidemux" \
+ -DVERBOSE=
+ make VERBOSE=
+ make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+
+ msg2 "Build Qt5 GUI"
+ cd "${srcdir}/build_qt5"
+ cmake ../avidemux/avidemux/qt4 \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DENABLE_QT5=ON \
+ -DFAKEROOT="${srcdir}/fakeroot" \
+ -DVERBOSE=
+ make VERBOSE=
+ make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+
+ msg2 "Build Qt5 GUI Plugins"
+ cd ${srcdir}/build_qt5_plugins
+ cmake "../avidemux/avidemux_plugins" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DENABLE_QT5=ON \
+ -DPLUGIN_UI=QT4 \
+ -DQT_LRELEASE_EXECUTABLE=/usr/bin/lrelease-qt5 \
+ -DFAKEROOT="${srcdir}/fakeroot" \
+ -DAVIDEMUX_SOURCE_DIR="${srcdir}/avidemux" \
+ -DVERBOSE=
+ make VERBOSE=
+ make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+
+#
+# msg2 "Build Gtk GUI"
+# cd "${srcdir}/build_gtk"
+# cmake ../avidemux/avidemux/gtk \
+# -DCMAKE_BUILD_TYPE=Release \
+# -DCMAKE_INSTALL_PREFIX=/usr \
+# -DFAKEROOT="${srcdir}/fakeroot" \
+# -DVERBOSE=
+# make VERBOSE=
+# make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+#
+# msg2 "Build Gtk GUI plugins"
+# cd ${srcdir}/build_gtk_plugins
+# cmake "../avidemux/avidemux_plugins" \
+# -DCMAKE_BUILD_TYPE=Release \
+# -DCMAKE_INSTALL_PREFIX=/usr \
+# -DPLUGIN_UI=GTK \
+# -DFAKEROOT="${srcdir}/fakeroot" \
+# -DAVIDEMUX_SOURCE_DIR="${srcdir}/avidemux" \
+# -DVERBOSE=
+# make VERBOSE=
+# make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+
+ msg2 "Build CLI frontend"
+ cd "${srcdir}/build_cli"
+ cmake ../avidemux/avidemux/cli \
+ -DFAKEROOT="${srcdir}/fakeroot" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DVERBOSE=
+ make VERBOSE=
+ make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+
+ msg2 "Build CLI plugins"
+ cd "${srcdir}/build_cli_plugins"
+ cmake ../avidemux/avidemux_plugins \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPLUGIN_UI=CLI \
+ -DFAKEROOT="${srcdir}/fakeroot" \
+ -DAVIDEMUX_SOURCE_DIR="${srcdir}/avidemux" \
+ -DVERBOSE=
+ make VERBOSE=
+ make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+
+ msg2 "Build Settings"
+ cd "${srcdir}/build_core_plugins_settings"
+ cmake ../avidemux/avidemux_plugins \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DFAKEROOT="${srcdir}/fakeroot" \
+ -DAVIDEMUX_SOURCE_DIR="${srcdir}/avidemux" \
+ -DPLUGIN_UI=SETTINGS \
+ -DVERBOSE=
+ make VERBOSE=
+ make VERBOSE= DESTDIR="${srcdir}/fakeroot" install
+}
+
+package_avidemux-core-git() {
+ depends=('aften' 'dcaenc' 'faac' 'faad2' 'fribidi' 'jack2' 'lame' 'libdca' 'libpulse' 'libva' 'libvpx' 'opencore-amr' 'twolame' 'xvidcore' 'sqlite' 'libx264' 'x265')
+ pkgdesc="Core libs for Avidemux. (GIT version)"
+ provides=("avidemux-core-git=${pkgver}" 'avidemux-core')
+ optdepends=('avidemux-qt4-git: a Qt4 GUI for Avidemux. (GIT Version) (install from "avidemux-git" package)'
+ 'avidemux-qt5-git: a Qt5 GUI for Avidemux. (GIT Version) (install from "avidemux-git" package)'
+ 'avidemux-gtk-git: a Gtk3 GUI for Avidemux. (GIT Version) (install from "avidemux-git" package)'
+ 'avidemux-cli-git: a CLI frontend for Avidemux. (GIT Version) (install from "avidemux-git" package)'
+ 'wine: AVSload')
+
+ make VERBOSE= -C build_core DESTDIR="${pkgdir}" install
+ make VERBOSE= -C build_core_plugins DESTDIR="${pkgdir}" install
+ make VERBOSE= -C build_core_plugins_settings DESTDIR="${pkgdir}" install
+
+ for i in 4 5; do
+ if [ -f fakeroot/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_x26${i}_other.so ]; then
+ install -Dm755 fakeroot/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_x26${i}_other.so "${pkgdir}/usr/lib/ADM_plugins6/videoEncoders/libADM_ve_x26${i}_other.so"
+ fi
+ done
+}
+
+package_avidemux-qt4-git() {
+ depends=("avidemux-core-git=${pkgver}" 'qt4' 'glu' 'libx264' 'x265')
+ pkgdesc="Qt4 GUI for Avidemux. (GIT version)"
+ provides=("avidemux-qt4-git=${pkgver}")
+ conflicts=('avidemux-qt4')
+ install=avidemux.install
+
+ make VERBOSE= -C build_qt4 DESTDIR="${pkgdir}" install
+ make VERBOSE= -C build_qt4_plugins DESTDIR="${pkgdir}" install
+
+ install -Dm644 avidemux/avidemux2.desktop "${pkgdir}/usr/share/applications/avidemux-qt4.desktop"
+ sed -e 's|Icon=avidemux|Icon=avidemux-qt4|g' \
+ -e 's|Exec=avidemux2_gtk|Exec=avidemux3_qt4|g' \
+ -e 's|Name=avidemux2|Name=Avidemux Qt4|' \
+ -i "${pkgdir}/usr/share/applications/avidemux-qt4.desktop"
+ install -Dm644 avidemux/avidemux_icon.png "${pkgdir}/usr/share/pixmaps/avidemux-qt4.png"
+}
+
+package_avidemux-qt5-git() {
+ depends=("avidemux-core-git=${pkgver}" 'qt5-script' 'libxv' 'desktop-file-utils' 'libx264' 'x265')
+ pkgdesc="Qt5 GUI for Avidemux. (GIT version)"
+ provides=("avidemux-qt5-git=${pkgver}")
+ conflicts=('avidemux-qt5')
+ install=avidemux.install
+
+ make VERBOSE= -C build_qt5 DESTDIR="${pkgdir}" install
+ make VERBOSE= -C build_qt5_plugins DESTDIR="${pkgdir}" install
+
+ install -Dm644 avidemux/avidemux2.desktop "${pkgdir}/usr/share/applications/avidemux-qt5.desktop"
+ sed -e 's|Icon=avidemux|Icon=avidemux-qt5|g' \
+ -e 's|Exec=avidemux2_gtk|Exec=avidemux3_qt5|g' \
+ -e 's|Name=avidemux2|Name=Avidemux Qt5|' \
+ -i "${pkgdir}/usr/share/applications/avidemux-qt5.desktop"
+ install -Dm644 avidemux/avidemux_icon.png "${pkgdir}/usr/share/pixmaps/avidemux-qt5.png"
+}
+
+# package_avidemux-gtk-git() {
+# depends=("avidemux-core-git=${pkgver}" 'gtk3' 'libxv' 'sdl' 'desktop-file-utils')
+# pkgdesc="Gtk3 GUI for Avidemux. (GIT version)"
+# provides=("avidemux-gtk-git=${pkgver}" 'avidemux-gtk')
+# conflicts=('avidemux-gtk')
+# install=avidemux.install
+#
+# make VERBOSE= -C build_gtk DESTDIR="${pkgdir}" install
+# make VERBOSE= -C build_gtk_plugins DESTDIR="${pkgdir}" install
+#
+# install -Dm644 avidemux/avidemux2.desktop "${pkgdir}/usr/share/applications/avidemux-gtk.desktop"
+# sed -e 's|Icon=avidemux|Icon=avidemux-gtk|g' \
+# -e 's|Exec=avidemux2_gtk|Exec=avidemux3_gtk|g' \
+# -e 's|Name=avidemux2|Name=Avidemux Gtk|' \
+# -i "${pkgdir}/usr/share/applications/avidemux-gtk.desktop"
+# install -Dm644 avidemux/avidemux_icon.png "${pkgdir}/usr/share/pixmaps/avidemux-gtk.png"
+#
+# rm -fr "${pkgdir}/usr/lib/ADM_plugins6/videoEncoders/"
+# }
+
+package_avidemux-cli-git() {
+ depends=("avidemux-core-git=${pkgver}")
+ pkgdesc="CLI frontend for Avidemux. (GIT version)"
+ provides=("avidemux-cli-git=${pkgver}" 'avidemux-cli')
+ conflicts=('avidemux-cli')
+
+ make VERBOSE= -C build_cli DESTDIR="${pkgdir}" install
+ make VERBOSE= -C build_cli_plugins DESTDIR="${pkgdir}" install
+
+ rm -fr "${pkgdir}/usr/lib/ADM_plugins6/videoEncoders/"
+}
diff --git a/avidemux.install b/avidemux.install
new file mode 100644
index 00000000000..df8436b28a1
--- /dev/null
+++ b/avidemux.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}