updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libflashsupport-pulse / PKGBUILD
blob5da15d4be6f9fc920750c1be62eb9abe6ad9f833
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
6 bename=pulse
7 pkgname=${realname}-${bename}
8 pkgver=20110408
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=("i686" "x86_64")
14 depends=("${bename}audio" "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         NOCONFIGURE=1 ./bootstrap.sh
46         ./configure --prefix=/usr
47         make
50 package() {
51         cd ""${srcdir}"/${_gitname}-build"
53         make DESTDIR="${pkgdir}" install
54         rm "${pkgdir}"/usr/lib/${realname}.la
55         rm -rf ""${srcdir}"/${_gitname}-build"