diff options
author | Florian Pritz <f-p@gmx.at> | 2009-03-26 19:41:58 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-03-26 19:41:58 +0100 |
commit | 87ec3d92c79bd4d933ea2ae2ad8794aa0e5fbf60 (patch) | |
tree | 31dd05e65663cd81223cd98cf3c7b2134378b42b /vlc-git | |
parent | 60309a9f54e880f9cf0f7d2a2d56c09b673d5558 (diff) | |
download | aur-packages-87ec3d92c79bd4d933ea2ae2ad8794aa0e5fbf60.tar.gz aur-packages-87ec3d92c79bd4d933ea2ae2ad8794aa0e5fbf60.tar.xz |
update
Diffstat (limited to 'vlc-git')
-rw-r--r-- | vlc-git/PKGBUILD | 70 | ||||
-rw-r--r-- | vlc-git/vlc.install | 16 |
2 files changed, 86 insertions, 0 deletions
diff --git a/vlc-git/PKGBUILD b/vlc-git/PKGBUILD new file mode 100644 index 0000000..ed2174f --- /dev/null +++ b/vlc-git/PKGBUILD @@ -0,0 +1,70 @@ +#Contributor: MacWolf <macwolf@archlinux.de> + +pkgname=vlc-git +pkgver=20090326 +pkgrel=1 +pkgdesc="VideoLAN Client is a multi-platform MPEG, VCD/DVD, and DivX player.Development GIT Version." +depends=('libmad' 'libmpeg2' 'ffmpeg' \ + 'hal' 'fluidsynth' 'zvbi' 'lua'\ + 'libdvbpsi' 'fribidi' 'sysfsutils' \ + 'libdvdnav' 'libnotify' 'libdvdread' \ + 'libmatroska' 'libcddb' 'libmpcdec'\ + 'faad2' 'qt' 'libmodplug' 'speex' 'sdl_image' \ + 'libxml2' 'libdca' 'libxv' 'avahi' 'taglib') +arch=(i686 x86_64) +makedepends=('a52dec' 'make' 'm4' 'pkgconfig' 'automake' 'autoconf' 'git' 'live-media>=2008.09.02') +install=vlc.install +url="http://www.videolan.org/vlc/" +license=(GPL) +conflicts=('vlc' 'vlc-svn' 'vlc-nightly') +provides=('vlc' 'vlc-svn' 'vlc-nightly') +source=() +md5sums=() + +_gitroot=git://git.videolan.org/vlc.git +_gitname=vlc + +build() { +cd $startdir/src + +if [ -d $_gitname ]; then + cd $_gitname && git pull origin + cd .. +else + git clone $_gitroot +fi + +rm -rf $_gitname-build +#cp -r $_gitname $_gitname-build +git clone $_gitname $_gitname-build + +msg "GIT checkout done or server timeout" + +cd $_gitname-build + +msg "Generating necessary files" + +./bootstrap + +msg "Generating done." + +msg "Starting make..." + + [ "${CARCH}" = "i686" ] && EXTRAFEATURES="--enable-loader --disable-live555 --with-live555-tree=/usr/lib/live-media" + [ "${CARCH}" = "x86_64" ] && EXTRAFEATURES="--enable-fast-install" + +./configure --prefix=/usr --enable-dvdread --enable-dvdnav --enable-madi --enable-ffmpeg --disable-rpath --enable-faad --enable-v4l --enable-dvb --enable-dmo --enable-qt4 --enable-theora --enable-flac --enable-skins2 ${EXTRAFEATURES} || return 1 + + make || return 1 + make DESTDIR=$startdir/pkg install || return 1 + + for res in 16 32 48; do + install -D -m644 share/vlc${res}x${res}.png \ + $startdir/pkg/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png || return 1 + done + + install -D -m644 $startdir/src/vlc/share/applications/vlc.desktop \ + $startdir/pkg/usr/share/applications/vlc.desktop || return 1 + + rm -rf ${startdir}/pkg/usr/lib/mozilla +} diff --git a/vlc-git/vlc.install b/vlc-git/vlc.install new file mode 100644 index 0000000..382dbde --- /dev/null +++ b/vlc-git/vlc.install @@ -0,0 +1,16 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + +op=$1 +shift +$op $* |