updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / lib32-libflashsupport-pulse / PKGBUILD
blob9d050e55822cdf6bdc44aa3122eac66bf9f91f6e
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
6 bename=pulse
7 pkgname=lib32-${realname}-${bename}
8 pkgver=20110620
9 pkgrel=1
10 pkgdesc="Adds PulseAudio support to the Flash browser plugin"
11 url="http://git.0pointer.de/?p=${realname}.git;a=summary"
12 license=("GPL")
13 arch=("x86_64")
14 depends=("lib32-libpulse" "flashplugin")
15 makedepends=("automake" "autoconf" "git" "pkg-config")
16 source=()
17 sha1sums=()
18 _gitroot="http://git.0pointer.de/repos/${realname}.git"
19 _gitname="${realname}-${bename}"
21 build() {
22         cd "${srcdir}"
24         # Repository
25         msg "Connecting to GIT server...."
26         if [ -d ${_gitname} ] ; then
27                 cd ${_gitname} && git pull origin
28                 msg "The local files are updated."
29         else
30                 git clone ${_gitroot} ${_gitname}
31         fi
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"
39         # Patch
40         sed -i 's|#define V4L1|//#define V4L1|g' ""${srcdir}"/${_gitname}-build/flashsupport.c"
42         # Config
43         [ ${CARCH} = 'x86_64' ] && CXXFLAGS="$CXXFLAGS -fPIC"
45         export CC="gcc -m32"
46         export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
48         NOCONFIGURE=1 ./bootstrap.sh
49         ./configure --prefix=/usr --libdir=/usr/lib32 --libexecdir=/usr/lib32
50         make
53 package() {
54         cd ""${srcdir}"/${_gitname}-build"
56         make DESTDIR="${pkgdir}" install
57         rm "${pkgdir}"/usr/lib32/${realname}.la
58         rm -rf ""${srcdir}"/${_gitname}-build"