summaryrefslogtreecommitdiffstats
path: root/vlc-branch/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'vlc-branch/PKGBUILD')
-rw-r--r--vlc-branch/PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/vlc-branch/PKGBUILD b/vlc-branch/PKGBUILD
new file mode 100644
index 0000000..a6c19de
--- /dev/null
+++ b/vlc-branch/PKGBUILD
@@ -0,0 +1,62 @@
+# Contributor: Muhammad 'MJ' Jassim <UnbreakableMJ@gmail.com>
+pkgname=vlc-branch
+pkgver=0.9.2
+pkgrel=1
+#_ffmpegver=20071204
+pkgdesc="Bleeding-edge version of VideoLAN Client, the multi-platform MPEG/VCD/DVD/XviD/DivX player."
+depends=('libmad' 'libmpeg2' 'ffmpeg' 'hal' 'libid3tag' \
+ 'libdvbpsi4' 'fribidi' 'sysfsutils' 'libdvdnav' 'libdvdread' \
+ 'xvidcore' 'libmatroska' 'libxv' 'alsa-lib' 'libtheora' \
+ 'faad2' 'qt' 'libdca' 'libxml2' 'lirc-utils' 'lua' 'libcddb' \
+ 'smbclient' 'taglib' 'flac' 'libmpcdec' 'libmodplug' 'avahi' \
+ 'sdl_image' 'libraw1394' 'speex' 'libnotify' 'libraw1394')
+ ##namcap says 'libraw1394' dependency included and not needed
+arch=('i686' 'x86_64')
+makedepends=('live-media' 'gnome-vfs' 'mesa' 'sdl_image' 'libmpcdec' \
+ 'speex' 'libnotify' 'libmodplug' 'gettext')
+install=vlc-branch.install
+url="http://www.videolan.org/vlc/"
+license=('GPL2')
+provides=('vlc' 'vlc-svn' 'vlc-git')
+#install=vlc-branch.install
+source=(http://download.videolan.org/pub/videolan/vlc/0.9.2/vlc-0.9.2.tar.bz2)
+md5sums=('f7d843d0725abb57196c4012eeb0e636' )
+VLCINSTALLDIR="/usr"
+
+build() {
+
+ ##older versions used "vlc-${_gitver}-git" or "vlc-${_gitver}-test1"
+ cd ${startdir}/src/vlc-0.9.2
+
+ [ "${CARCH}" = "i686" ] && EXTRAFEATURES="--enable-loader --disable-live555 --with-live555-tree=/usr/lib/live-media"
+ [ "${CARCH}" = "x86_64" ] && EXTRAFEATURES="--enable-fast-install"
+ ./configure --prefix=${VLCINSTALLDIR} --enable-dvdread --enable-dvdnav \
+ --enable-madi --enable-ffmpeg --disable-rpath \
+ --enable-qt4 --enable-faad --enable-alsa --enable-skins2 \
+ --enable-dvb --enable-dmo --with-ffmpeg-faac \
+ --with-ffmpeg-vorbis --with-ffmpeg-dts --with-ffmpeg-ogg \
+ --with-ffmpeg-theora --enable-v4l --enable-theora \
+ --enable-flac --enable-snapshot --enable-hal --enable-dbus \
+ --enable-ogg --enable-dbus-control --enable-shared \
+ --enable-nls --enable-lirc --enable--shout \
+ --enable-debug --program-suffix= \
+ --with-dv-raw1394=/usr/include/libraw1394 ${EXTRAFEATURES} || return 1
+ ##Using "--enable-wxwidgets --with-wx-config=wx-config-2.6" is useless now
+ ##Don't enable real or realrtsp. They won't work anyway, and build might fail.
+
+ make || return 1
+ make DESTDIR=${startdir}/pkg install || return 1
+
+ for res in 16 32 48; do
+ install -D -m644 ${startdir}/src/vlc-${pkgver}/share/vlc${res}x${res}.png \
+ ${startdir}/pkg/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png || return 1
+ done
+
+ if [ "${VLCINSTALLDIR}" != "/opt/vlc-branch" ]
+ then
+ sed -i -e 's:/opt/vlc-branch/bin:${VLCINSTALLDIR}/bin:' ${startdir}/src/vlc-branch.sh
+ fi
+ [ "${VLCINSTALLDIR}" != "/usr" ] && install -D -m555 ${startdir}/src/vlc-branch.sh \
+ ${startdir}/pkg/etc/profile.d/vlc-branch.sh
+ rm -rf ${startdir}/pkg/usr/lib/mozilla
+}