1 # Contributor: Stas Bourakov <sbourakov(at)gmail.com>
5 pkgdesc="Enigma2 - software for Linux-powered DVB satellite, terrestrial and cable digital television receivers (e.g. Dreambox). This is experimental version for PC."
7 url="https://github.com/cougar-enigma/Enigma2PC"
9 depends=('gettext' 'libdvdnav' 'freetype2' 'fribidi' 'giflib' 'gstreamer0.10' 'gstreamer0.10-base-plugins' 'libjpeg6' 'libpng' 'sdl' 'libsigc++' 'libxml2' 'libxslt' 'python2' 'swig' 'libdvbsi++' 'libxmlccwrap' 'libdreamdvd' 'libdvbcsa_4_enigma2' 'xine-lib_for_enigma2' 'twisted-web2' 'libsigcpp1.2')
10 makedepends=('autoconf' 'automake' 'bison' 'fakeroot' 'flex' 'libtool' 'm4' 'make' 'patch' 'pkg-config' 'git' 'linux-headers')
12 source=('rollback_lirc_support.diff' 'etc.tar.gz' 'enigma21_11_11.patch')
13 _commit='new_xine_plugin'
14 _gitroot='git://github.com/cougar-enigma/Enigma2PC.git'
19 msg "Connecting to GIT server...."
21 if [ -d "${_gitname}" ] ; then
22 cd "${_gitname}" && git checkout "${_commit}" && git pull origin
23 [[ "${_commit}" ]] && git checkout "${_commit}"
24 msg "The local files are updated."
25 #msg "Running make distclean"
28 git clone "${_gitroot}" "${_gitname}" -b "${_commit}"
30 [[ "${_commit}" ]] && git checkout "${_commit}"
33 if [ -d "$srcdir/$_gitname-build" ]; then
34 rm -r "$srcdir/$_gitname-build"
36 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37 cd "$srcdir/$_gitname-build"
38 patch -p1 -i ${srcdir}/enigma21_11_11.patch
39 autoreconf -i || return 1
40 ./configure --without-debug --prefix=/usr/local --with-xlib || return 1
42 make install DESTDIR=$pkgdir || return 1
43 cp -fR lib/gdi/*.h $pkgdir/usr/local/include/enigma2/lib/gdi
46 install -D dvbsoftwareca.ko $pkgdir/lib/modules/`uname -r`/kernel/drivers/dvbsoftwareca.ko
49 mkdir -p $pkgdir/usr/local/etc
51 cp -r $startdir/src/etc/* $pkgdir/usr/local/etc
53 md5sums=('5bb8d4b8e62cd664da681b5444fab301'
54 '97ae27f051e79c33616bcc4360c80557'
55 '6c65308e8f6953f20b62f56dad807d6e')