aboutsummaryrefslogtreecommitdiffstats
path: root/vlc-edge/PKGBUILD
blob: 667a2d89abafb939d88fb19ff9d2384938693e19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
## vlc-edge: based on vlc (official package)

# $Id: PKGBUILD 240440 2015-06-09 09:39:21Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
# Contributor: Martin Sandsmark <martin.sandsmark@kde.org>

_name=vlc
pkgname=vlc-edge
pkgver=r2.2.0.git.6402.g04236fb
pkgrel=1
pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player (GIT Version; with suffix)"
arch=('i686' 'x86_64')
url="http://www.videolan.org/vlc/"
license=('LGPL2.1' 'GPL2')
depends=('a52dec' 'libdvbpsi' 'libxpm' 'qt4' 'sdl_image'
         'libdvdnav' 'libdvdcss' 'lua' 'libmatroska' 'taglib'
         'libmpcdec' 'ffmpeg' 'faad2' 'libshout' 'libmad'
         'libmpeg2' 'xcb-util-keysyms' 'libtar' 'libxinerama'
         'libmtp' 'twolame' 'libnotify' 'libbluray' 'flac'
         'kdelibs' 'opus' 'gtk2')
makedepends=('aribb24' 'aribb25')
install=vlc.install
source=('git://git.videolan.org/vlc.git')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_name}"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${srcdir}/${_name}"

  sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp # font path
}

build() {
  cd "${srcdir}/${_name}"

  ./bootstrap
  ./configure --prefix=/usr/lib/vlc-edge \
              --sysconfdir=/etc \
              --disable-rpath \
              --enable-nls \
              --enable-lirc=auto \
              --with-kde-solid=no \
              --disable-avcodec \
              RCC=/usr/bin/rcc-qt4

  make
}

package() {
  cd "${srcdir}/${_name}"

  make DESTDIR="${pkgdir}" install

  install -d "${pkgdir}"/usr/bin
  for b in "${pkgdir}"/usr/lib/vlc-edge/bin/*; do
    ln -s /usr/lib/vlc-edge/bin/$(basename $b) "${pkgdir}"/usr/bin/$(basename $b)-edge
  done
}