1 # LibFlashSupport-Pulse: Installer: Arch
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
3 # Contributor: Mikael Eriksson <mikael_miffe_eriksson@yahoo.se>
5 realname=libflashsupport
7 pkgname=${realname}-${bename}
10 pkgdesc="Adds PulseAudio support to the Flash browser plugin"
11 url="http://git.0pointer.de/?p=${realname}.git;a=summary"
13 arch=("i686" "x86_64")
14 depends=("${bename}audio" "flashplugin")
15 makedepends=("automake" "autoconf" "git" "pkg-config")
18 _gitroot="http://git.0pointer.de/repos/${realname}.git"
19 _gitname="${realname}-${bename}"
25 msg "Connecting to GIT server...."
26 if [ -d ${_gitname} ] ; then
27 cd ${_gitname} && git pull origin
28 msg "The local files are updated."
30 git clone ${_gitroot} ${_gitname}
32 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf ""${srcdir}"/${_gitname}-build"
36 git clone -l ""${srcdir}"/${_gitname}" ""${srcdir}"/${_gitname}-build"
37 cd ""${srcdir}"/${_gitname}-build"
40 sed -i 's|#define V4L1|//#define V4L1|g' ""${srcdir}"/${_gitname}-build/flashsupport.c"
43 [ ${CARCH} = 'x86_64' ] && CXXFLAGS="$CXXFLAGS -fPIC"
45 NOCONFIGURE=1 ./bootstrap.sh
46 ./configure --prefix=/usr
51 cd ""${srcdir}"/${_gitname}-build"
53 make DESTDIR="${pkgdir}" install
54 rm "${pkgdir}"/usr/lib/${realname}.la
55 rm -rf ""${srcdir}"/${_gitname}-build"