1 # Maintainer: Christopher Rosell <chrippa@tanuki.se>
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
3 # Contributor: Mikael Eriksson <mikael_miffe_eriksson@yahoo.se>
5 realname=libflashsupport
7 pkgname=lib32-${realname}-${bename}
10 pkgdesc="Adds PulseAudio support to the Flash browser plugin"
11 url="http://git.0pointer.de/?p=${realname}.git;a=summary"
14 depends=("lib32-libpulse" "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"
46 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
48 NOCONFIGURE=1 ./bootstrap.sh
49 ./configure --prefix=/usr --libdir=/usr/lib32 --libexecdir=/usr/lib32
54 cd ""${srcdir}"/${_gitname}-build"
56 make DESTDIR="${pkgdir}" install
57 rm "${pkgdir}"/usr/lib32/${realname}.la
58 rm -rf ""${srcdir}"/${_gitname}-build"