summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 386f08b26d02602b37ed8b75e1632316a74bcc7e (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
#Maintainer: AwesomeHaircut <jesusbalbastro@gmail.com>
#Previous Maintainer: ente <mail@ck76.de>
#Previous Maintainer: Christoph Seitz <seitz.christop@gmail.com>
#Previous Maintainer: Gianluca Boiano (aka M0Rf30)

pkgname=me-tv-bzr
pkgver=1.4.0
pkgrel=60
pkgdesc="A digital television (DVB) viewer for GNOME."
arch=('i686' 'x86_64')
url="https://code.launchpad.net/me-tv"
license=('GPL')
depends=('gtkmm' 'gconfmm' 'libxml++' 'libunique' 'vlc' 'gstreamer0.10-base' 'libxml++2.6')
optdepends=('linuxtv-dvb-apps: dvb tools'
'w_scan: generation of channels.conf')
makedepends=('intltool' 'gnome-common' 'bzr')
provides=('me-tv-bzr')
conflicts=('me-tv')
install='me-tv.install'
options=('!emptydirs')

build() {
  msg "Connecting to the server..."
  bzr co lp:me-tv
  
  msg "Applying PACKAGE_DATA_DIR fix..."
  cd "${srcdir}/me-tv/client"
  sed -i -- 's/PACKAGE_DATA_DIR"/"\/usr\/share/g' me-tv-client.cc
  
  cd "${srcdir}/me-tv/server"
  sed -i 's/abs(transponder.frontend_parameters.frequency/abs((int)transponder.frontend_parameters.frequency/g' dvb_frontend.cc
  
  msg "Starting make..."

  cd ..
  NOCONFIGURE=1 ./autogen.sh 
  ./configure CXXFLAGS="$CXXFLAGS -D__KERNEL_STRICT_NAMES" --prefix=/usr
  make
}
 
package() {
  msg "building package..."     
  cd "${srcdir}/me-tv"

  make -j1 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
  gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" \
  --domain gtv "${pkgdir}/usr/etc/gconf/schemas/${pkgname}.schemas"
 
}